#CB38B8#CB38B8

#CB38B8 is a mid, highly saturated purple. Relative luminance 0.190; OKLCH L 60.5% C 0.226 H 333.8°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#CB38B8
RGBrgb(203, 56, 184)
HSLhsl(308, 59%, 51%)
HSVhsv(308, 72%, 80%)
CMYKcmyk(0%, 72.4%, 9.4%, 20.4%)
CIE-LABlab(50.67, 69.95, -36.38)
CIE-LCHlch(50.67, 78.85, 332.52°)
OKLaboklab(60.46% 0.2027 -0.0997)
OKLCHoklch(60.46% 0.226 333.8)
XYZxyz(34.6948, 18.9885, 47.1760)
Luminance0.1899 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB38B8 #38CB4B
analogous
#9438CB #CB38B8 #CB386E
triadic
#CB38B8 #B8CB38 #38B8CB
tetradic
#CB38B8 #CB9438 #38CB4B #386ECB
square
#CB38B8 #CB9438 #38CB4B #386ECB
split-complementary
#CB38B8 #6ECB38 #38CB94
monochromatic
#6C1C62 #9D298E #CB38B8 #D869C9 #E499DB

Accessibility & contrast

On white

4.38
#CB38B8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#CB38B8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB38B8
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB38B8#FFFFFF#000000##000000
##CB38B81.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#346BBC
Deuteranopia (green-blind)
#6A80B4
Tritanopia (blue-blind)
#D44674
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #cb38b8;
/* rgb */ color: rgb(203, 56, 184);
/* oklch */ color: oklch(60.5% 0.226 333.8);
Tailwind
colors: {
  custom: {
    50: '#df7dce',
    500: '#cb38b8',
    950: '#000000',
  },
}
SCSS
$custom: #cb38b8;
$custom-light: #df7dce;
$custom-dark: #000000;
JSON
{
  "hex": "#cb38b8",
  "rgb": {
    "r": 203,
    "g": 56,
    "b": 184
  },
  "hsl": {
    "h": 307.755,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.60462,
    "c": 0.22592,
    "h": 333.8
  },
  "luminance": 0.18986
}

Semantic roles & 50–950 ramp

primary
#CB38B8
secondary
#8FD097
accent
#E25A46
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #CB38B8

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

Preview Lab → · Contrast checker → · Palette generator →

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