#9956CB#9956CB
#9956CB is a mid, vivid violet. Relative luminance 0.177; OKLCH L 58.3% C 0.180 H 308.2°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).
Color values
| HEX | #9956CB |
|---|---|
| RGB | rgb(153, 86, 203) |
| HSL | hsl(274, 53%, 57%) |
| HSV | hsv(274, 58%, 80%) |
| CMYK | cmyk(24.6%, 57.6%, 0%, 20.4%) |
| CIE-LAB | lab(49.18, 48.72, -50.19) |
| CIE-LCH | lch(49.18, 69.95, 314.15°) |
| OKLab | oklab(58.26% 0.1113 -0.1413) |
| OKLCH | oklch(58.26% 0.18 308.2) |
| XYZ | xyz(27.2420, 17.7401, 58.4774) |
| Luminance | 0.1774 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Amethyst
#9B5FC0
ΔE00 3.29
Lightish Purple
#A552E6
ΔE00 4.24
Deep Lavender
#8D5EB7
ΔE00 4.27
Purpley
#8756E4
ΔE00 5.67
Mediumorchid
#BA55D3
ΔE00 6.39
Lighter Purple
#A55AF4
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9956CB #88CB56
analogous
#5F56CB #9956CB #CB56C3
triadic
#9956CB #CB9956 #56CB99
tetradic
#9956CB #CB5F56 #88CB56 #56C3CB
square
#9956CB #CB5F56 #88CB56 #56C3CB
split-complementary
#9956CB #C3CB56 #56CB5F
monochromatic
#5A277F #7B36AE #9956CB #B585D9 #D1B4E8
Accessibility & contrast
On white
4.62
#9956CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.55
#9956CB on #000000
AA ✓AA large ✓AAA ✗
Best text color
#FFFFFF on #9956CB
4.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9956CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9956CB | 1.00 | 4.62 | 4.55 | 4.62 |
| #FFFFFF | 4.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2B72CF
Deuteranopia (green-blind)
#4676C8
Tritanopia (blue-blind)
#926C88
Achromatopsia (no color)
#757575
Design tokens & code
CSS
--color: #9956cb; /* rgb */ color: rgb(153, 86, 203); /* oklch */ color: oklch(58.3% 0.180 308.2);
Tailwind
colors: {
custom: {
50: '#ba88db',
500: '#9956cb',
950: '#000000',
},
}SCSS
$custom: #9956cb; $custom-light: #ba88db; $custom-dark: #000000;
JSON
{
"hex": "#9956cb",
"rgb": {
"r": 153,
"g": 86,
"b": 203
},
"hsl": {
"h": 274.359,
"s": 52.941,
"l": 56.667
},
"oklch": {
"l": 0.5826,
"c": 0.17986,
"h": 308.2
},
"luminance": 0.1774
}Semantic roles & 50–950 ramp
primary
#9956CB
secondary
#BBD6A6
accent
#DC4B89
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120C15
muted
#817D83