#8A66F2#8A66F2
#8A66F2 is a mid, highly saturated violet. Relative luminance 0.213; OKLCH L 61.7% C 0.201 H 291.2°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).
Color values
| HEX | #8A66F2 |
|---|---|
| RGB | rgb(138, 102, 242) |
| HSL | hsl(255, 84%, 67%) |
| HSV | hsv(255, 58%, 95%) |
| CMYK | cmyk(43%, 57.9%, 0%, 5.1%) |
| CIE-LAB | lab(53.29, 46.44, -65.73) |
| CIE-LCH | lch(53.29, 80.48, 305.24°) |
| OKLab | oklab(61.69% 0.0727 -0.1874) |
| OKLCH | oklch(61.69% 0.201 291.2) |
| XYZ | xyz(31.2552, 21.3158, 86.4548) |
| Luminance | 0.2132 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.77
Mediumpurple
#9370DB
ΔE00 4.88
Purpley
#8756E4
ΔE00 5.00
Lighter Purple
#A55AF4
ΔE00 5.33
Lightish Purple
#A552E6
ΔE00 7.00
Light Urple
#B36FF6
ΔE00 7.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A66F2 #CEF266
analogous
#6688F2 #8A66F2 #D066F2
triadic
#8A66F2 #F28A66 #66F28A
tetradic
#8A66F2 #F26688 #CEF266 #66F2D0
square
#8A66F2 #F26688 #CEF266 #66F2D0
split-complementary
#8A66F2 #F2D066 #88F266
monochromatic
#4111CC #5F2EED #8A66F2 #B59EF7 #E0D7FC
Accessibility & contrast
On white
3.99
#8A66F2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.26
#8A66F2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A66F2
5.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A66F2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A66F2 | 1.00 | 3.99 | 5.26 | 5.26 |
| #FFFFFF | 3.99 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.26 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.26 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0082F7
Deuteranopia (green-blind)
#107CEF
Tritanopia (blue-blind)
#6C85A2
Achromatopsia (no color)
#7F7F7F
Design tokens & code
CSS
--color: #8a66f2; /* rgb */ color: rgb(138, 102, 242); /* oklch */ color: oklch(61.7% 0.201 291.2);
Tailwind
colors: {
custom: {
50: '#b293f7',
500: '#8a66f2',
950: '#000000',
},
}SCSS
$custom: #8a66f2; $custom-light: #b293f7; $custom-dark: #000000;
JSON
{
"hex": "#8a66f2",
"rgb": {
"r": 138,
"g": 102,
"b": 242
},
"hsl": {
"h": 255.429,
"s": 84.337,
"l": 67.451
},
"oklch": {
"l": 0.61686,
"c": 0.20099,
"h": 291.2
},
"luminance": 0.21317
}Semantic roles & 50–950 ramp
primary
#8A66F2
secondary
#E5F0C4
accent
#E105A8
background
#FBF9FF
surface
#F6F1FF
border
#D0CBD7
text
#120D17
muted
#817E85