#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
RGBrgb(203, 56, 178)
HSLhsl(310, 59%, 51%)
HSVhsv(310, 72%, 80%)
CMYKcmyk(0%, 72.4%, 12.3%, 20.4%)
CIE-LABlab(50.38, 69.07, -33.33)
CIE-LCHlch(50.38, 76.69, 334.24°)
OKLaboklab(60.16% 0.2023 -0.0909)
OKLCHoklch(60.16% 0.222 335.8)
XYZxyz(34.0791, 18.7423, 43.9336)
Luminance0.1874 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

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
##CB38B21.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.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

Preview Lab

Preview with #CB38B2

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

Preview Lab → · Contrast checker → · Palette generator →

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