More
More
#8A98EF colour
#8A98EF is a light blue close to CSS cornflowerblue. RGB 138, 152, 239, HSL 232, 76%, 74%. Black text passes AAA (7.82:1), white fails (2.69:1).
- Nearest CSS name
cornflowerblue#6495ed (not an exact match)- Described as
- a light blue
- Red, green, blue
- 138, 152, 239
- Web safe
- No
- Luminance
- 0.3409 (WCAG relative luminance, 0 is black, 1 is white)
Colour codes
| HEX | #8a98ef | |
|---|---|---|
| RGB | rgb(138, 152, 239) | |
| RGB (percent) | rgb(54.1% 59.6% 93.7%) | |
| HSL | hsl(231.7, 75.9%, 73.9%) | |
| HSV / HSB | hsv(231.7, 42.3%, 93.7%) | |
| HWB | hwb(231.7 54.1% 6.3%) | |
| CMYK (naive) | cmyk(42%, 36%, 0%, 6%) | |
| CIELAB (D50) | lab(64.48% 11.54 -45.99) | |
| OKLCH | oklch(70.48% 0.1281 275.67) | |
| Decimal | 9083119 |
CMYK here is the plain formula with no colour profile, so treat it as a starting point; a printer's profile gives the real ink values. CIELAB uses a D50 white point, as CSS lab() does. HSV is not a CSS function, so it is shown for design apps only.
Contrast with white and black text
| Text | Ratio | AA normal (4.5) | AA large (3) | AAA normal (7) | AAA large (4.5) |
|---|---|---|---|---|---|
| White | 2.69:1 | Fail | Fail | Fail | Fail |
| Black | 7.82:1 | Pass | Pass | Pass | Pass |
Black text is the better choice on #8A98EF (7.82:1). Ratios use the WCAG 2.2 formula; large text means at least 24px, or 18.66px bold. Check another pair.
Tints and shades
Mixed with white, then with black, in ten even steps (straight sRGB mixing, as most design tools do).
Colour harmonies
Hue turned around the HSL colour wheel, saturation and lightness kept.
How it looks with colour blindness
Simulated with the Machado, Oliveira and Fernandes (2009) matrices at full severity, applied in linear RGB; achromatopsia shows the colour's luminance as grey. Milder forms (protanomaly, deuteranomaly) are far more common and shift colours less. Never use colour as the only way to carry meaning.
CSS
| Text colour | color: #8a98ef; | |
|---|---|---|
| Background | background-color: #8a98ef; | |
| Border | border: 1px solid #8a98ef; | |
| Half transparent | background-color: rgb(138 152 239 / 50%); | |
| Custom property | --colour-main: #8a98ef; | |
| Gradient to a darker shade | background: linear-gradient(135deg, #8a98ef, #535b8f); | |
| Gradient from a lighter tint | background: linear-gradient(180deg, #b9c1f5, #8a98ef); | |
| Text on this colour | background-color: #8a98ef; color: #000; |
Similar named colours
cornflowerblue#6495ed, distance 4.7mediumpurple#9370db, distance 9.8dodgerblue#1e90ff, distance 10.2deepskyblue#00bfff, distance 11.9mediumslateblue#7b68ee, distance 12.3plum#dda0dd, distance 13#efe18aComplement of #8A98EF
Distance is measured in OKLab, scaled by 100; under about 2 is hard to tell apart side by side.
Convert #8A98EF to other formats · Build a palette from it · Check contrast · All named colours
Colour names from CSS Color Module Level 4. Palette values from the Tailwind CSS v3 default palette (MIT licence) and the Material Design 2014 colour palette as published in Material Design Lite (Apache License 2.0). All other values are calculated from the hex code.