#CB38B1#CB38B1

#CB38B1 is a mid, highly saturated pink. Relative luminance 0.187; OKLCH L 60.1% C 0.221 H 336.1°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#CB38B1
RGBrgb(203, 56, 177)
HSLhsl(311, 59%, 51%)
HSVhsv(311, 72%, 80%)
CMYKcmyk(0%, 72.4%, 12.8%, 20.4%)
CIE-LABlab(50.34, 68.93, -32.82)
CIE-LCHlch(50.34, 76.34, 334.54°)
OKLaboklab(60.11% 0.2022 -0.0894)
OKLCHoklch(60.11% 0.221 336.1)
XYZxyz(33.9791, 18.7022, 43.4068)
Luminance0.1870 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB38B1 #38CB52
analogous
#9B38CB #CB38B1 #CB3867
triadic
#CB38B1 #B1CB38 #38B1CB
tetradic
#CB38B1 #CB9B38 #38CB52 #3867CB
square
#CB38B1 #CB9B38 #38CB52 #3867CB
split-complementary
#CB38B1 #67CB38 #38CB9B
monochromatic
#6C1C5E #9D2988 #CB38B1 #D869C4 #E499D7

Accessibility & contrast

On white

4.43
#CB38B1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#CB38B1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB38B1
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB38B1#FFFFFF#000000##000000
##CB38B11.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A6AB4
Deuteranopia (green-blind)
#6D80AE
Tritanopia (blue-blind)
#D54271
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #cb38b1;
/* rgb */ color: rgb(203, 56, 177);
/* oklch */ color: oklch(60.1% 0.221 336.1);
Tailwind
colors: {
  custom: {
    50: '#df7cc8',
    500: '#cb38b1',
    950: '#000000',
  },
}
SCSS
$custom: #cb38b1;
$custom-light: #df7cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#cb38b1",
  "rgb": {
    "r": 203,
    "g": 56,
    "b": 177
  },
  "hsl": {
    "h": 310.612,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.6011,
    "c": 0.22106,
    "h": 336.1
  },
  "luminance": 0.18699
}

Semantic roles & 50–950 ramp

primary
#CB38B1
secondary
#8FD09A
accent
#E26246
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CB38B1

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#CB38B1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva