#CB9FF2#CB9FF2
#CB9FF2 is a light, vivid violet. Relative luminance 0.439; OKLCH L 77.3% C 0.124 H 308.0°. Best body text is #000000 at 9.78:1 contrast (WCAG AA passes).
Color values
| HEX | #CB9FF2 |
|---|---|
| RGB | rgb(203, 159, 242) |
| HSL | hsl(272, 76%, 79%) |
| HSV | hsv(272, 34%, 95%) |
| CMYK | cmyk(16.1%, 34.3%, 0%, 5.1%) |
| CIE-LAB | lab(72.16, 31.66, -35.46) |
| CIE-LCH | lch(72.16, 47.53, 311.76°) |
| OKLab | oklab(77.26% 0.0764 -0.0978) |
| OKLCH | oklch(77.26% 0.124 308) |
| XYZ | xyz(53.0507, 43.9041, 89.6668) |
| Luminance | 0.4390 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lavender (survey)
#C79FEF
ΔE00 0.85
Baby Purple
#CA9BF7
ΔE00 1.69
Lilac (survey)
#CEA2FD
ΔE00 1.86
Pastel Purple
#CAA0FF
ΔE00 2.57
Pale Violet
#CEAEFA
ΔE00 3.89
Mauve
#E0B0FF
ΔE00 4.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CB9FF2 #C6F29F
analogous
#A19FF2 #CB9FF2 #F29FF0
triadic
#CB9FF2 #F2CB9F #9FF2CB
tetradic
#CB9FF2 #F2A19F #C6F29F #9FF0F2
square
#CB9FF2 #F2A19F #C6F29F #9FF0F2
split-complementary
#CB9FF2 #F0F29F #9FF2A1
monochromatic
#9133E3 #AE69EB #CB9FF2 #E8D5F9 #F0E4FB
Accessibility & contrast
On white
2.15
#CB9FF2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.78
#CB9FF2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CB9FF2
9.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CB9FF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CB9FF2 | 1.00 | 2.15 | 9.78 | 9.78 |
| #FFFFFF | 2.15 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.78 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.78 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8FAFF5
Deuteranopia (green-blind)
#98B2F0
Tritanopia (blue-blind)
#C6ABBE
Achromatopsia (no color)
#B1B1B1
Design tokens & code
CSS
--color: #cb9ff2; /* rgb */ color: rgb(203, 159, 242); /* oklch */ color: oklch(77.3% 0.124 308.0);
Tailwind
colors: {
custom: {
50: '#dcbcf6',
500: '#cb9ff2',
950: '#000000',
},
}SCSS
$custom: #cb9ff2; $custom-light: #dcbcf6; $custom-dark: #000000;
JSON
{
"hex": "#cb9ff2",
"rgb": {
"r": 203,
"g": 159,
"b": 242
},
"hsl": {
"h": 271.807,
"s": 76.147,
"l": 78.627
},
"oklch": {
"l": 0.7726,
"c": 0.12407,
"h": 308
},
"luminance": 0.43904
}Semantic roles & 50–950 ramp
primary
#CB9FF2
secondary
#E5F3D8
accent
#D80D6D
background
#FDFBFF
surface
#FBF6FE
border
#D4D0D6
text
#151217
muted
#838185