#CB87E2#CB87E2
#CB87E2 is a light, vivid purple. Relative luminance 0.355; OKLCH L 72.5% C 0.146 H 317.2°. Best body text is #000000 at 8.10:1 contrast (WCAG AA passes).
Color values
| HEX | #CB87E2 |
|---|---|
| RGB | rgb(203, 135, 226) |
| HSL | hsl(285, 61%, 71%) |
| HSV | hsv(285, 40%, 89%) |
| CMYK | cmyk(10.2%, 40.3%, 0%, 11.4%) |
| CIE-LAB | lab(66.15, 41.35, -36.02) |
| CIE-LCH | lch(66.15, 54.84, 318.94°) |
| OKLab | oklab(72.49% 0.1073 -0.0992) |
| OKLCH | oklch(72.49% 0.146 317.2) |
| XYZ | xyz(47.0181, 35.5167, 76.3154) |
| Luminance | 0.3552 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Lavender Pink
#DD85D7
ΔE00 4.90
Pale Purple
#B790D4
ΔE00 5.40
Liliac
#C48EFD
ΔE00 5.66
Baby Purple
#CA9BF7
ΔE00 5.90
Violet (CSS)
#EE82EE
ΔE00 5.99
Orchid
#DA70D6
ΔE00 6.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CB87E2 #9EE287
analogous
#9D87E2 #CB87E2 #E287CB
triadic
#CB87E2 #E2CB87 #87E2CB
tetradic
#CB87E2 #E29D87 #9EE287 #87CBE2
square
#CB87E2 #E29D87 #9EE287 #87CBE2
split-complementary
#CB87E2 #CBE287 #87E29D
monochromatic
#9B2EC0 #B656D6 #CB87E2 #E0B8EE #F4E6F9
Accessibility & contrast
On white
2.59
#CB87E2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.10
#CB87E2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CB87E2
8.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CB87E2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CB87E2 | 1.00 | 2.59 | 8.10 | 8.10 |
| #FFFFFF | 2.59 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.10 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.10 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#799CE5
Deuteranopia (green-blind)
#8AA3DF
Tritanopia (blue-blind)
#CB93AA
Achromatopsia (no color)
#A1A1A1
Design tokens & code
CSS
--color: #cb87e2; /* rgb */ color: rgb(203, 135, 226); /* oklch */ color: oklch(72.5% 0.146 317.2);
Tailwind
colors: {
custom: {
50: '#dcabeb',
500: '#cb87e2',
950: '#000000',
},
}SCSS
$custom: #cb87e2; $custom-light: #dcabeb; $custom-dark: #000000;
JSON
{
"hex": "#cb87e2",
"rgb": {
"r": 203,
"g": 135,
"b": 226
},
"hsl": {
"h": 284.835,
"s": 61.074,
"l": 70.784
},
"oklch": {
"l": 0.72493,
"c": 0.14617,
"h": 317.2
},
"luminance": 0.35515
}Semantic roles & 50–950 ramp
primary
#CB87E2
secondary
#DCEFD6
accent
#C91D48
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151016
muted
#837F84