#CB38B6#CB38B6

#CB38B6 is a mid, highly saturated purple. Relative luminance 0.189; OKLCH L 60.4% C 0.225 H 334.5°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#CB38B6
RGBrgb(203, 56, 182)
HSLhsl(309, 59%, 51%)
HSVhsv(309, 72%, 80%)
CMYKcmyk(0%, 72.4%, 10.3%, 20.4%)
CIE-LABlab(50.58, 69.65, -35.37)
CIE-LCHlch(50.58, 78.12, 333.08°)
OKLaboklab(60.36% 0.2026 -0.0968)
OKLCHoklch(60.36% 0.225 334.5)
XYZxyz(34.4866, 18.9053, 46.0797)
Luminance0.1890 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB38B6 #38CB4D
analogous
#9638CB #CB38B6 #CB386D
triadic
#CB38B6 #B6CB38 #38B6CB
tetradic
#CB38B6 #CB9638 #38CB4D #386DCB
square
#CB38B6 #CB9638 #38CB4D #386DCB
split-complementary
#CB38B6 #6DCB38 #38CB96
monochromatic
#6C1C61 #9D298C #CB38B6 #D869C8 #E499DA

Accessibility & contrast

On white

4.39
#CB38B6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#CB38B6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB38B6
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB38B6#FFFFFF#000000##000000
##CB38B61.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#366BB9
Deuteranopia (green-blind)
#6B80B2
Tritanopia (blue-blind)
#D54573
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #cb38b6;
/* rgb */ color: rgb(203, 56, 182);
/* oklch */ color: oklch(60.4% 0.225 334.5);
Tailwind
colors: {
  custom: {
    50: '#df7dcc',
    500: '#cb38b6',
    950: '#000000',
  },
}
SCSS
$custom: #cb38b6;
$custom-light: #df7dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#cb38b6",
  "rgb": {
    "r": 203,
    "g": 56,
    "b": 182
  },
  "hsl": {
    "h": 308.571,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.6036,
    "c": 0.22451,
    "h": 334.5
  },
  "luminance": 0.18902
}

Semantic roles & 50–950 ramp

primary
#CB38B6
secondary
#8FD098
accent
#E25C46
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #CB38B6

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

Preview Lab → · Contrast checker → · Palette generator →

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