#9851E6#9851E6
#9851E6 is a mid, highly saturated violet. Relative luminance 0.183; OKLCH L 59.2% C 0.216 H 302.1°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).
Color values
| HEX | #9851E6 |
|---|---|
| RGB | rgb(152, 81, 230) |
| HSL | hsl(269, 75%, 61%) |
| HSV | hsv(269, 65%, 90%) |
| CMYK | cmyk(33.9%, 64.8%, 0%, 9.8%) |
| CIE-LAB | lab(49.83, 57.35, -64.53) |
| CIE-LCH | lch(49.83, 86.33, 311.63°) |
| OKLab | oklab(59.25% 0.1148 -0.1834) |
| OKLCH | oklch(59.25% 0.216 302.1) |
| XYZ | xyz(30.1709, 18.2733, 76.7852) |
| Luminance | 0.1827 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 2.50
Purpley
#8756E4
ΔE00 3.09
Lighter Purple
#A55AF4
ΔE00 4.02
Electric Purple
#AA23FF
ΔE00 6.03
Bright Violet
#AD0AFD
ΔE00 7.11
Amethyst
#9B5FC0
ΔE00 7.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9851E6 #9FE651
analogous
#5154E6 #9851E6 #E351E6
triadic
#9851E6 #E69851 #51E698
tetradic
#9851E6 #E65154 #9FE651 #51E6E3
square
#9851E6 #E65154 #9FE651 #51E6E3
split-complementary
#9851E6 #E6E351 #54E651
monochromatic
#5B18A5 #791FDA #9851E6 #B887EE #D7BCF5
Accessibility & contrast
On white
4.51
#9851E6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.65
#9851E6 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9851E6
4.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9851E6 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9851E6 | 1.00 | 4.51 | 4.65 | 4.65 |
| #FFFFFF | 4.51 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.65 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.65 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0075EB
Deuteranopia (green-blind)
#1176E3
Tritanopia (blue-blind)
#887295
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #9851e6; /* rgb */ color: rgb(152, 81, 230); /* oklch */ color: oklch(59.2% 0.216 302.1);
Tailwind
colors: {
custom: {
50: '#bb86ef',
500: '#9851e6',
950: '#000000',
},
}SCSS
$custom: #9851e6; $custom-light: #bb86ef; $custom-dark: #000000;
JSON
{
"hex": "#9851e6",
"rgb": {
"r": 152,
"g": 81,
"b": 230
},
"hsl": {
"h": 268.591,
"s": 74.874,
"l": 60.98
},
"oklch": {
"l": 0.59246,
"c": 0.21637,
"h": 302.1
},
"luminance": 0.18273
}Semantic roles & 50–950 ramp
primary
#9851E6
secondary
#CBE5AD
accent
#D70E77
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120B16
muted
#817C84