#CB42E2#CB42E2
#CB42E2 is a light, highly saturated purple. Relative luminance 0.221; OKLCH L 63.7% C 0.247 H 321.5°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).
Color values
| HEX | #CB42E2 |
|---|---|
| RGB | rgb(203, 66, 226) |
| HSL | hsl(291, 73%, 57%) |
| HSV | hsv(291, 71%, 89%) |
| CMYK | cmyk(10.2%, 70.8%, 0%, 11.4%) |
| CIE-LAB | lab(54.12, 73.40, -55.01) |
| CIE-LCH | lch(54.12, 91.73, 323.15°) |
| OKLab | oklab(63.66% 0.1934 -0.1538) |
| OKLCH | oklch(63.66% 0.247 321.5) |
| XYZ | xyz(40.3028, 22.0861, 74.0769) |
| Luminance | 0.2208 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purple Pink
#D725DE
ΔE00 2.87
Pinkish Purple
#D648D7
ΔE00 3.42
Mediumorchid
#BA55D3
ΔE00 3.55
Heliotrope
#D94FF5
ΔE00 4.51
Hot Purple
#CB00F5
ΔE00 5.09
Pink Purple
#EF1DE7
ΔE00 5.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CB42E2 #59E242
analogous
#7B42E2 #CB42E2 #E242A9
triadic
#CB42E2 #E2CB42 #42E2CB
tetradic
#CB42E2 #E27B42 #59E242 #42A9E2
square
#CB42E2 #E27B42 #59E242 #42A9E2
split-complementary
#CB42E2 #A9E242 #42E27B
monochromatic
#811793 #B01FC8 #CB42E2 #DA77EA #E8ACF2
Accessibility & contrast
On white
3.88
#CB42E2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.42
#CB42E2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #CB42E2
5.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CB42E2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CB42E2 | 1.00 | 3.88 | 5.42 | 5.42 |
| #FFFFFF | 3.88 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.42 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.42 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0078E6
Deuteranopia (green-blind)
#5686DE
Tritanopia (blue-blind)
#CD608E
Achromatopsia (no color)
#818181
Design tokens & code
CSS
--color: #cb42e2; /* rgb */ color: rgb(203, 66, 226); /* oklch */ color: oklch(63.7% 0.247 321.5);
Tailwind
colors: {
custom: {
50: '#df83ec',
500: '#cb42e2',
950: '#000000',
},
}SCSS
$custom: #cb42e2; $custom-light: #df83ec; $custom-dark: #000000;
JSON
{
"hex": "#cb42e2",
"rgb": {
"r": 203,
"g": 66,
"b": 226
},
"hsl": {
"h": 291.375,
"s": 73.394,
"l": 57.255
},
"oklch": {
"l": 0.6366,
"c": 0.24713,
"h": 321.5
},
"luminance": 0.22084
}Semantic roles & 50–950 ramp
primary
#CB42E2
secondary
#A9E09F
accent
#F03852
background
#FEF8FE
surface
#FCF0FD
border
#D5CBD5
text
#160C16
muted
#847D84