#CB9EF2#CB9EF2
#CB9EF2 is a light, vivid violet. Relative luminance 0.436; OKLCH L 77.1% C 0.126 H 308.2°. Best body text is #000000 at 9.71:1 contrast (WCAG AA passes).
Color values
| HEX | #CB9EF2 |
|---|---|
| RGB | rgb(203, 158, 242) |
| HSL | hsl(272, 76%, 78%) |
| HSV | hsv(272, 35%, 95%) |
| CMYK | cmyk(16.1%, 34.7%, 0%, 5.1%) |
| CIE-LAB | lab(71.93, 32.20, -35.81) |
| CIE-LCH | lch(71.93, 48.16, 311.96°) |
| OKLab | oklab(77.09% 0.0778 -0.0988) |
| OKLCH | oklch(77.09% 0.126 308.2) |
| XYZ | xyz(52.8795, 43.5615, 89.6097) |
| Luminance | 0.4356 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lavender (survey)
#C79FEF
ΔE00 0.99
Baby Purple
#CA9BF7
ΔE00 1.48
Lilac (survey)
#CEA2FD
ΔE00 1.90
Pastel Purple
#CAA0FF
ΔE00 2.55
Pale Violet
#CEAEFA
ΔE00 4.15
Mauve
#E0B0FF
ΔE00 5.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CB9EF2 #C5F29E
analogous
#A19EF2 #CB9EF2 #F29EEF
triadic
#CB9EF2 #F2CB9E #9EF2CB
tetradic
#CB9EF2 #F2A19E #C5F29E #9EEFF2
square
#CB9EF2 #F2A19E #C5F29E #9EEFF2
split-complementary
#CB9EF2 #EFF29E #9EF2A1
monochromatic
#9132E4 #AE68EB #CB9EF2 #E8D4F9 #F1E4FB
Accessibility & contrast
On white
2.16
#CB9EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.71
#CB9EF2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CB9EF2
9.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CB9EF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CB9EF2 | 1.00 | 2.16 | 9.71 | 9.71 |
| #FFFFFF | 2.16 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.71 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.71 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8EAEF5
Deuteranopia (green-blind)
#97B1F0
Tritanopia (blue-blind)
#C6AABD
Achromatopsia (no color)
#B0B0B0
Design tokens & code
CSS
--color: #cb9ef2; /* rgb */ color: rgb(203, 158, 242); /* oklch */ color: oklch(77.1% 0.126 308.2);
Tailwind
colors: {
custom: {
50: '#dcbbf6',
500: '#cb9ef2',
950: '#000000',
},
}SCSS
$custom: #cb9ef2; $custom-light: #dcbbf6; $custom-dark: #000000;
JSON
{
"hex": "#cb9ef2",
"rgb": {
"r": 203,
"g": 158,
"b": 242
},
"hsl": {
"h": 272.143,
"s": 76.364,
"l": 78.431
},
"oklch": {
"l": 0.77085,
"c": 0.12576,
"h": 308.2
},
"luminance": 0.43561
}Semantic roles & 50–950 ramp
primary
#CB9EF2
secondary
#E5F3D8
accent
#D90D6B
background
#FDFBFF
surface
#FBF6FE
border
#D4D0D6
text
#151217
muted
#838185