#CB42B2#CB42B2
#CB42B2 is a mid, highly saturated pink. Relative luminance 0.198; OKLCH L 61.1% C 0.210 H 336.0°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).
Color values
| HEX | #CB42B2 |
|---|---|
| RGB | rgb(203, 66, 178) |
| HSL | hsl(311, 57%, 53%) |
| HSV | hsv(311, 67%, 80%) |
| CMYK | cmyk(0%, 67.5%, 12.3%, 20.4%) |
| CIE-LAB | lab(51.62, 65.58, -31.40) |
| CIE-LCH | lch(51.62, 72.71, 334.42°) |
| OKLab | oklab(61.06% 0.1919 -0.0855) |
| OKLCH | oklch(61.06% 0.21 336) |
| XYZ | xyz(34.6132, 19.8103, 44.1116) |
| Luminance | 0.1981 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 2.09
Pinky Purple
#C94CBE
ΔE00 2.65
Purpleish Pink
#DF4EC8
ΔE00 5.63
Purplish Pink
#CE5DAE
ΔE00 5.83
Pinkish Purple
#D648D7
ΔE00 6.26
Hot Magenta
#F504C9
ΔE00 6.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CB42B2 #42CB5B
analogous
#9F42CB #CB42B2 #CB426D
triadic
#CB42B2 #B2CB42 #42B2CB
tetradic
#CB42B2 #CB9F42 #42CB5B #426DCB
square
#CB42B2 #CB9F42 #42CB5B #426DCB
split-complementary
#CB42B2 #6DCB42 #42CB9F
monochromatic
#732064 #A32D8D #CB42B2 #D872C6 #E5A2D9
Accessibility & contrast
On white
4.23
#CB42B2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.96
#CB42B2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #CB42B2
4.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CB42B2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CB42B2 | 1.00 | 4.23 | 4.96 | 4.96 |
| #FFFFFF | 4.23 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.96 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.96 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#446EB5
Deuteranopia (green-blind)
#7182AF
Tritanopia (blue-blind)
#D54B74
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #cb42b2; /* rgb */ color: rgb(203, 66, 178); /* oklch */ color: oklch(61.1% 0.210 336.0);
Tailwind
colors: {
custom: {
50: '#de81c9',
500: '#cb42b2',
950: '#000000',
},
}SCSS
$custom: #cb42b2; $custom-light: #de81c9; $custom-dark: #000000;
JSON
{
"hex": "#cb42b2",
"rgb": {
"r": 203,
"g": 66,
"b": 178
},
"hsl": {
"h": 310.949,
"s": 56.846,
"l": 52.745
},
"oklch": {
"l": 0.61055,
"c": 0.21007,
"h": 336
},
"luminance": 0.19807
}Semantic roles & 50–950 ramp
primary
#CB42B2
secondary
#97D2A2
accent
#E06448
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82