#8A7EF6#8A7EF6
#8A7EF6 is a light, vivid blue. Relative luminance 0.270; OKLCH L 66.0% C 0.173 H 285.2°. Best body text is #000000 at 6.40:1 contrast (WCAG AA passes).
Color values
| HEX | #8A7EF6 |
|---|---|
| RGB | rgb(138, 126, 246) |
| HSL | hsl(246, 87%, 73%) |
| HSV | hsv(246, 49%, 96%) |
| CMYK | cmyk(43.9%, 48.8%, 0%, 3.5%) |
| CIE-LAB | lab(58.95, 33.84, -58.85) |
| CIE-LCH | lch(58.95, 67.89, 299.90°) |
| OKLab | oklab(65.97% 0.0453 -0.1671) |
| OKLCH | oklch(65.97% 0.173 285.2) |
| XYZ | xyz(34.5718, 26.9774, 90.5565) |
| Luminance | 0.2698 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Periwinkle (survey)
#8E82FE
ΔE00 1.58
Lavender Blue
#8B88F8
ΔE00 2.98
Perrywinkle
#8F8CE7
ΔE00 4.94
Cornflower
#6A79F7
ΔE00 5.56
Mediumpurple
#9370DB
ΔE00 6.55
Mediumslateblue
#7B68EE
ΔE00 6.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A7EF6 #EAF67E
analogous
#7EAEF6 #8A7EF6 #C67EF6
triadic
#8A7EF6 #F68A7E #7EF68A
tetradic
#8A7EF6 #F67EAE #EAF67E #7EF6C6
square
#8A7EF6 #F67EAE #EAF67E #7EF6C6
split-complementary
#8A7EF6 #F6C67E #AEF67E
monochromatic
#2610E9 #5645F2 #8A7EF6 #BEB7FA #E5E2FD
Accessibility & contrast
On white
3.28
#8A7EF6 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.40
#8A7EF6 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A7EF6
6.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A7EF6 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A7EF6 | 1.00 | 3.28 | 6.40 | 6.40 |
| #FFFFFF | 3.28 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.40 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.40 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4B91FA
Deuteranopia (green-blind)
#478AF3
Tritanopia (blue-blind)
#6897AE
Achromatopsia (no color)
#8E8E8E
Design tokens & code
CSS
--color: #8a7ef6; /* rgb */ color: rgb(138, 126, 246); /* oklch */ color: oklch(66.0% 0.173 285.2);
Tailwind
colors: {
custom: {
50: '#b2a3fa',
500: '#8a7ef6',
950: '#000000',
},
}SCSS
$custom: #8a7ef6; $custom-light: #b2a3fa; $custom-dark: #000000;
JSON
{
"hex": "#8a7ef6",
"rgb": {
"r": 138,
"g": 126,
"b": 246
},
"hsl": {
"h": 246,
"s": 86.957,
"l": 72.941
},
"oklch": {
"l": 0.65969,
"c": 0.17312,
"h": 285.2
},
"luminance": 0.26979
}Semantic roles & 50–950 ramp
primary
#8A7EF6
secondary
#F2F5D6
accent
#E402CD
background
#FBFAFF
surface
#F6F4FF
border
#D0CED7
text
#110F17
muted
#807F85