#CB40A2#CB40A2
#CB40A2 is a mid, highly saturated pink. Relative luminance 0.190; OKLCH L 60.1% C 0.202 H 341.8°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).
Color values
| HEX | #CB40A2 |
|---|---|
| RGB | rgb(203, 64, 162) |
| HSL | hsl(318, 57%, 52%) |
| HSV | hsv(318, 68%, 80%) |
| CMYK | cmyk(0%, 68.5%, 20.2%, 20.4%) |
| CIE-LAB | lab(50.66, 64.05, -23.50) |
| CIE-LCH | lch(50.66, 68.22, 339.85°) |
| OKLab | oklab(60.13% 0.1917 -0.063) |
| OKLCH | oklch(60.13% 0.202 341.8) |
| XYZ | xyz(32.9846, 18.9751, 36.1008) |
| Luminance | 0.1897 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 4.76
Pinky Purple
#C94CBE
ΔE00 5.51
Purplish Pink
#CE5DAE
ΔE00 5.90
Mediumvioletred
#C71585
ΔE00 7.08
Purpleish Pink
#DF4EC8
ΔE00 7.59
Hot Magenta
#F504C9
ΔE00 8.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CB40A2 #40CB69
analogous
#AF40CB #CB40A2 #CB405C
triadic
#CB40A2 #A2CB40 #40A2CB
tetradic
#CB40A2 #CBAF40 #40CB69 #405CCB
square
#CB40A2 #CBAF40 #40CB69 #405CCB
split-complementary
#CB40A2 #5CCB40 #40CBAF
monochromatic
#721F59 #A22C7F #CB40A2 #D870B9 #E5A0D1
Accessibility & contrast
On white
4.38
#CB40A2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.79
#CB40A2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #CB40A2
4.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CB40A2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CB40A2 | 1.00 | 4.38 | 4.79 | 4.79 |
| #FFFFFF | 4.38 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.79 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.79 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4B6AA5
Deuteranopia (green-blind)
#76819F
Tritanopia (blue-blind)
#D7426B
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #cb40a2; /* rgb */ color: rgb(203, 64, 162); /* oklch */ color: oklch(60.1% 0.202 341.8);
Tailwind
colors: {
custom: {
50: '#df7fbd',
500: '#cb40a2',
950: '#000000',
},
}SCSS
$custom: #cb40a2; $custom-light: #df7fbd; $custom-dark: #000000;
JSON
{
"hex": "#cb40a2",
"rgb": {
"r": 203,
"g": 64,
"b": 162
},
"hsl": {
"h": 317.698,
"s": 57.202,
"l": 52.353
},
"oklch": {
"l": 0.60126,
"c": 0.2018,
"h": 341.8
},
"luminance": 0.18972
}Semantic roles & 50–950 ramp
primary
#CB40A2
secondary
#95D2A7
accent
#E07547
background
#FEF8FB
surface
#FCEFF6
border
#D5CAD0
text
#160B12
muted
#847C81