#9846E4#9846E4
#9846E4 is a mid, highly saturated violet. Relative luminance 0.167; OKLCH L 57.8% C 0.228 H 303.7°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).
Color values
| HEX | #9846E4 |
|---|---|
| RGB | rgb(152, 70, 228) |
| HSL | hsl(271, 75%, 58%) |
| HSV | hsv(271, 69%, 89%) |
| CMYK | cmyk(33.3%, 69.3%, 0%, 10.6%) |
| CIE-LAB | lab(47.83, 62.04, -66.64) |
| CIE-LCH | lch(47.83, 91.04, 312.95°) |
| OKLab | oklab(57.77% 0.1265 -0.1895) |
| OKLCH | oklch(57.77% 0.228 303.7) |
| XYZ | xyz(29.1394, 16.6572, 75.0638) |
| Luminance | 0.1666 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 3.98
Purpley
#8756E4
ΔE00 4.20
Electric Purple
#AA23FF
ΔE00 4.62
Darkorchid
#9932CC
ΔE00 5.35
Bright Violet
#AD0AFD
ΔE00 5.40
Blueviolet
#8A2BE2
ΔE00 5.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9846E4 #92E446
analogous
#4946E4 #9846E4 #E446E1
triadic
#9846E4 #E49846 #46E498
tetradic
#9846E4 #E44946 #92E446 #46E1E4
square
#9846E4 #E44946 #92E446 #46E1E4
split-complementary
#9846E4 #E1E446 #46E449
monochromatic
#5A1699 #7A1ECF #9846E4 #B67BEC #D3B1F4
Accessibility & contrast
On white
4.85
#9846E4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.33
#9846E4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9846E4
4.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9846E4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9846E4 | 1.00 | 4.85 | 4.33 | 4.85 |
| #FFFFFF | 4.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0070E9
Deuteranopia (green-blind)
#0071E1
Tritanopia (blue-blind)
#896B90
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #9846e4; /* rgb */ color: rgb(152, 70, 228); /* oklch */ color: oklch(57.8% 0.228 303.7);
Tailwind
colors: {
custom: {
50: '#bc80ed',
500: '#9846e4',
950: '#000000',
},
}SCSS
$custom: #9846e4; $custom-light: #bc80ed; $custom-dark: #000000;
JSON
{
"hex": "#9846e4",
"rgb": {
"r": 152,
"g": 70,
"b": 228
},
"hsl": {
"h": 271.139,
"s": 74.528,
"l": 58.431
},
"oklch": {
"l": 0.5777,
"c": 0.22788,
"h": 303.7
},
"luminance": 0.16657
}Semantic roles & 50–950 ramp
primary
#9846E4
secondary
#C2E2A4
accent
#F13790
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B16
muted
#827C84