#8A7EFC#8A7EFC
#8A7EFC is a light, vivid blue. Relative luminance 0.274; OKLCH L 66.3% C 0.181 H 284.6°. Best body text is #000000 at 6.47:1 contrast (WCAG AA passes).
Color values
| HEX | #8A7EFC |
|---|---|
| RGB | rgb(138, 126, 252) |
| HSL | hsl(246, 95%, 74%) |
| HSV | hsv(246, 50%, 99%) |
| CMYK | cmyk(45.2%, 50%, 0%, 1.2%) |
| CIE-LAB | lab(59.30, 35.54, -61.61) |
| CIE-LCH | lch(59.30, 71.13, 299.98°) |
| OKLab | oklab(66.34% 0.0458 -0.1752) |
| OKLCH | oklch(66.34% 0.181 284.6) |
| XYZ | xyz(35.5076, 27.3517, 95.4851) |
| Luminance | 0.2735 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Periwinkle (survey)
#8E82FE
ΔE00 1.24
Lavender Blue
#8B88F8
ΔE00 3.02
Perrywinkle
#8F8CE7
ΔE00 5.38
Cornflower
#6A79F7
ΔE00 5.50
Mediumslateblue
#7B68EE
ΔE00 6.95
Mediumpurple
#9370DB
ΔE00 7.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A7EFC #F0FC7E
analogous
#7EB1FC #8A7EFC #C97EFC
triadic
#8A7EFC #FC8A7E #7EFC8A
tetradic
#8A7EFC #FC7EB1 #F0FC7E #7EFCC9
square
#8A7EFC #FC7EB1 #F0FC7E #7EFCC9
split-complementary
#8A7EFC #FCC97E #B1FC7E
monochromatic
#1E06F9 #5442FB #8A7EFC #C0BAFD #E4E1FE
Accessibility & contrast
On white
3.25
#8A7EFC on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.47
#8A7EFC on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A7EFC
6.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A7EFC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A7EFC | 1.00 | 3.25 | 6.47 | 6.47 |
| #FFFFFF | 3.25 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.47 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.47 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4593FF
Deuteranopia (green-blind)
#408BF9
Tritanopia (blue-blind)
#6599B1
Achromatopsia (no color)
#8F8F8F
Design tokens & code
CSS
--color: #8a7efc; /* rgb */ color: rgb(138, 126, 252); /* oklch */ color: oklch(66.3% 0.181 284.6);
Tailwind
colors: {
custom: {
50: '#b2a3fe',
500: '#8a7efc',
950: '#000000',
},
}SCSS
$custom: #8a7efc; $custom-light: #b2a3fe; $custom-dark: #000000;
JSON
{
"hex": "#8a7efc",
"rgb": {
"r": 138,
"g": 126,
"b": 252
},
"hsl": {
"h": 245.714,
"s": 95.455,
"l": 74.118
},
"oklch": {
"l": 0.66339,
"c": 0.18108,
"h": 284.6
},
"luminance": 0.27353
}Semantic roles & 50–950 ramp
primary
#8A7EFC
secondary
#F3F7D4
accent
#E600D0
background
#FBFAFF
surface
#F6F4FF
border
#D0CED7
text
#110F18
muted
#807F86