#8A7EEA#8A7EEA
#8A7EEA is a light, vivid blue. Relative luminance 0.263; OKLCH L 65.3% C 0.157 H 286.3°. Best body text is #000000 at 6.25:1 contrast (WCAG AA passes).
Color values
| HEX | #8A7EEA |
|---|---|
| RGB | rgb(138, 126, 234) |
| HSL | hsl(247, 72%, 71%) |
| HSV | hsv(247, 46%, 92%) |
| CMYK | cmyk(41%, 46.2%, 0%, 8.2%) |
| CIE-LAB | lab(58.29, 30.47, -53.26) |
| CIE-LCH | lch(58.29, 61.36, 299.77°) |
| OKLab | oklab(65.25% 0.044 -0.1507) |
| OKLCH | oklch(65.25% 0.157 286.3) |
| XYZ | xyz(32.7892, 26.2643, 81.1678) |
| Luminance | 0.2626 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Periwinkle (survey)
#8E82FE
ΔE00 2.98
Lavender Blue
#8B88F8
ΔE00 3.55
Perrywinkle
#8F8CE7
ΔE00 4.32
Mediumpurple
#9370DB
ΔE00 5.62
Cornflower
#6A79F7
ΔE00 6.09
Mediumslateblue
#7B68EE
ΔE00 6.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A7EEA #DEEA7E
analogous
#7EA8EA #8A7EEA #C07EEA
triadic
#8A7EEA #EA8A7E #7EEA8A
tetradic
#8A7EEA #EA7EA8 #DEEA7E #7EEAC0
square
#8A7EEA #EA7EA8 #DEEA7E #7EEAC0
split-complementary
#8A7EEA #EAC07E #A8EA7E
monochromatic
#3421CC #5A49E1 #8A7EEA #BAB3F3 #E7E5FB
Accessibility & contrast
On white
3.36
#8A7EEA on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.25
#8A7EEA on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A7EEA
6.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A7EEA | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A7EEA | 1.00 | 3.36 | 6.25 | 6.25 |
| #FFFFFF | 3.36 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.25 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.25 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#558FEE
Deuteranopia (green-blind)
#5289E8
Tritanopia (blue-blind)
#6E94A9
Achromatopsia (no color)
#8C8C8C
Design tokens & code
CSS
--color: #8a7eea; /* rgb */ color: rgb(138, 126, 234); /* oklch */ color: oklch(65.3% 0.157 286.3);
Tailwind
colors: {
custom: {
50: '#b0a3f1',
500: '#8a7eea',
950: '#000000',
},
}SCSS
$custom: #8a7eea; $custom-light: #b0a3f1; $custom-dark: #000000;
JSON
{
"hex": "#8a7eea",
"rgb": {
"r": 138,
"g": 126,
"b": 234
},
"hsl": {
"h": 246.667,
"s": 72,
"l": 70.588
},
"oklch": {
"l": 0.65252,
"c": 0.157,
"h": 286.3
},
"luminance": 0.26265
}Semantic roles & 50–950 ramp
primary
#8A7EEA
secondary
#EDF1D3
accent
#D411BE
background
#FBFAFE
surface
#F6F3FD
border
#D0CDD5
text
#110F17
muted
#807F85