#CB51A2#CB51A2
#CB51A2 is a mid, vivid pink. Relative luminance 0.212; OKLCH L 62.0% C 0.179 H 342.9°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).
Color values
| HEX | #CB51A2 |
|---|---|
| RGB | rgb(203, 81, 162) |
| HSL | hsl(320, 54%, 56%) |
| HSV | hsv(320, 60%, 80%) |
| CMYK | cmyk(0%, 60.1%, 20.2%, 20.4%) |
| CIE-LAB | lab(53.16, 57.16, -19.65) |
| CIE-LCH | lch(53.16, 60.44, 341.02°) |
| OKLab | oklab(61.96% 0.1708 -0.0524) |
| OKLCH | oklch(61.96% 0.179 342.9) |
| XYZ | xyz(34.0935, 21.1931, 36.4705) |
| Luminance | 0.2119 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Purplish Pink
#CE5DAE
ΔE00 3.19
Pale Magenta
#D767AD
ΔE00 5.80
Pinky Purple
#C94CBE
ΔE00 5.99
Purpley Pink
#C83CB9
ΔE00 6.71
Purpleish Pink
#DF4EC8
ΔE00 6.90
Bright Pink
#FE01B1
ΔE00 7.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CB51A2 #51CB7A
analogous
#B751CB #CB51A2 #CB5165
triadic
#CB51A2 #A2CB51 #51A2CB
tetradic
#CB51A2 #CBB751 #51CB7A #5165CB
square
#CB51A2 #CBB751 #51CB7A #5165CB
split-complementary
#CB51A2 #65CB51 #51CBB7
monochromatic
#7C255F #AC3383 #CB51A2 #D980BB #E7AFD4
Accessibility & contrast
On white
4.01
#CB51A2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.24
#CB51A2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #CB51A2
5.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CB51A2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CB51A2 | 1.00 | 4.01 | 5.24 | 5.24 |
| #FFFFFF | 4.01 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.24 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.24 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5B72A5
Deuteranopia (green-blind)
#7E869F
Tritanopia (blue-blind)
#D75172
Achromatopsia (no color)
#7F7F7F
Design tokens & code
CSS
--color: #cb51a2; /* rgb */ color: rgb(203, 81, 162); /* oklch */ color: oklch(62.0% 0.179 342.9);
Tailwind
colors: {
custom: {
50: '#de88bd',
500: '#cb51a2',
950: '#000000',
},
}SCSS
$custom: #cb51a2; $custom-light: #de88bd; $custom-dark: #000000;
JSON
{
"hex": "#cb51a2",
"rgb": {
"r": 203,
"g": 81,
"b": 162
},
"hsl": {
"h": 320.164,
"s": 53.982,
"l": 55.686
},
"oklch": {
"l": 0.61961,
"c": 0.17868,
"h": 342.9
},
"luminance": 0.2119
}Semantic roles & 50–950 ramp
primary
#CB51A2
secondary
#A3D5B4
accent
#DD7C4A
background
#FEF8FB
surface
#FCF0F6
border
#D5CBD0
text
#160C12
muted
#847D81