#CB38B2#CB38B2
#CB38B2 is a mid, highly saturated pink. Relative luminance 0.187; OKLCH L 60.2% C 0.222 H 335.8°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).
Color values
| HEX | #CB38B2 |
|---|---|
| RGB | rgb(203, 56, 178) |
| HSL | hsl(310, 59%, 51%) |
| HSV | hsv(310, 72%, 80%) |
| CMYK | cmyk(0%, 72.4%, 12.3%, 20.4%) |
| CIE-LAB | lab(50.38, 69.07, -33.33) |
| CIE-LCH | lch(50.38, 76.69, 334.24°) |
| OKLab | oklab(60.16% 0.2023 -0.0909) |
| OKLCH | oklch(60.16% 0.222 335.8) |
| XYZ | xyz(34.0791, 18.7423, 43.9336) |
| Luminance | 0.1874 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 1.50
Pinky Purple
#C94CBE
ΔE00 3.64
Purpleish Pink
#DF4EC8
ΔE00 6.76
Purple Pink
#D725DE
ΔE00 6.76
Pinkish Purple
#D648D7
ΔE00 6.82
Hot Magenta
#F504C9
ΔE00 6.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CB38B2 #38CB51
analogous
#9A38CB #CB38B2 #CB3868
triadic
#CB38B2 #B2CB38 #38B2CB
tetradic
#CB38B2 #CB9A38 #38CB51 #3868CB
square
#CB38B2 #CB9A38 #38CB51 #3868CB
split-complementary
#CB38B2 #68CB38 #38CB9A
monochromatic
#6C1C5F #9D2989 #CB38B2 #D869C5 #E499D8
Accessibility & contrast
On white
4.42
#CB38B2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.75
#CB38B2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #CB38B2
4.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CB38B2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CB38B2 | 1.00 | 4.42 | 4.75 | 4.75 |
| #FFFFFF | 4.42 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.75 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.75 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#396AB5
Deuteranopia (green-blind)
#6D80AF
Tritanopia (blue-blind)
#D54371
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #cb38b2; /* rgb */ color: rgb(203, 56, 178); /* oklch */ color: oklch(60.2% 0.222 335.8);
Tailwind
colors: {
custom: {
50: '#df7cc9',
500: '#cb38b2',
950: '#000000',
},
}SCSS
$custom: #cb38b2; $custom-light: #df7cc9; $custom-dark: #000000;
JSON
{
"hex": "#cb38b2",
"rgb": {
"r": 203,
"g": 56,
"b": 178
},
"hsl": {
"h": 310.204,
"s": 58.566,
"l": 50.784
},
"oklch": {
"l": 0.60159,
"c": 0.22175,
"h": 335.8
},
"luminance": 0.18739
}Semantic roles & 50–950 ramp
primary
#CB38B2
secondary
#8FD09A
accent
#E26146
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82