#9855C7#9855C7
#9855C7 is a mid, vivid violet. Relative luminance 0.173; OKLCH L 57.8% C 0.177 H 309.0°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).
Color values
| HEX | #9855C7 |
|---|---|
| RGB | rgb(152, 85, 199) |
| HSL | hsl(275, 50%, 56%) |
| HSV | hsv(275, 57%, 78%) |
| CMYK | cmyk(23.6%, 57.3%, 0%, 22%) |
| CIE-LAB | lab(48.63, 48.08, -48.77) |
| CIE-LCH | lch(48.63, 68.48, 314.59°) |
| OKLab | oklab(57.76% 0.1112 -0.1372) |
| OKLCH | oklch(57.76% 0.177 309) |
| XYZ | xyz(26.5042, 17.2963, 55.9640) |
| Luminance | 0.1730 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Amethyst
#9B5FC0
ΔE00 3.22
Deep Lavender
#8D5EB7
ΔE00 3.93
Lightish Purple
#A552E6
ΔE00 4.89
Purpley
#8756E4
ΔE00 6.10
Purply
#983FB2
ΔE00 6.19
Mediumorchid
#BA55D3
ΔE00 6.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9855C7 #84C755
analogous
#5F55C7 #9855C7 #C755BD
triadic
#9855C7 #C79855 #55C798
tetradic
#9855C7 #C75F55 #84C755 #55BDC7
square
#9855C7 #C75F55 #84C755 #55BDC7
split-complementary
#9855C7 #BDC755 #55C75F
monochromatic
#58287A #7937A8 #9855C7 #B483D6 #D0B1E5
Accessibility & contrast
On white
4.71
#9855C7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.46
#9855C7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9855C7
4.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9855C7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9855C7 | 1.00 | 4.71 | 4.46 | 4.71 |
| #FFFFFF | 4.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2D71CB
Deuteranopia (green-blind)
#4774C4
Tritanopia (blue-blind)
#916A86
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #9855c7; /* rgb */ color: rgb(152, 85, 199); /* oklch */ color: oklch(57.8% 0.177 309.0);
Tailwind
colors: {
custom: {
50: '#b988d8',
500: '#9855c7',
950: '#000000',
},
}SCSS
$custom: #9855c7; $custom-light: #b988d8; $custom-dark: #000000;
JSON
{
"hex": "#9855c7",
"rgb": {
"r": 152,
"g": 85,
"b": 199
},
"hsl": {
"h": 275.263,
"s": 50.442,
"l": 55.686
},
"oklch": {
"l": 0.57758,
"c": 0.17659,
"h": 309
},
"luminance": 0.17296
}Semantic roles & 50–950 ramp
primary
#9855C7
secondary
#B8D4A4
accent
#DA4E88
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#120C14
muted
#817D83