#CB38B5#CB38B5

#CB38B5 is a mid, highly saturated purple. Relative luminance 0.189; OKLCH L 60.3% C 0.224 H 334.8°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#CB38B5
RGBrgb(203, 56, 181)
HSLhsl(309, 59%, 51%)
HSVhsv(309, 72%, 80%)
CMYKcmyk(0%, 72.4%, 10.8%, 20.4%)
CIE-LABlab(50.53, 69.51, -34.86)
CIE-LCHlch(50.53, 77.76, 333.36°)
OKLaboklab(60.31% 0.2025 -0.0953)
OKLCHoklch(60.31% 0.224 334.8)
XYZxyz(34.3837, 18.8641, 45.5374)
Luminance0.1886 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB38B5 #38CB4E
analogous
#9838CB #CB38B5 #CB386B
triadic
#CB38B5 #B5CB38 #38B5CB
tetradic
#CB38B5 #CB9838 #38CB4E #386BCB
square
#CB38B5 #CB9838 #38CB4E #386BCB
split-complementary
#CB38B5 #6BCB38 #38CB98
monochromatic
#6C1C60 #9D298B #CB38B5 #D869C7 #E499D9

Accessibility & contrast

On white

4.40
#CB38B5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#CB38B5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB38B5
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB38B5#FFFFFF#000000##000000
##CB38B51.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#376AB8
Deuteranopia (green-blind)
#6B80B1
Tritanopia (blue-blind)
#D54473
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #cb38b5;
/* rgb */ color: rgb(203, 56, 181);
/* oklch */ color: oklch(60.3% 0.224 334.8);
Tailwind
colors: {
  custom: {
    50: '#df7ccb',
    500: '#cb38b5',
    950: '#000000',
  },
}
SCSS
$custom: #cb38b5;
$custom-light: #df7ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#cb38b5",
  "rgb": {
    "r": 203,
    "g": 56,
    "b": 181
  },
  "hsl": {
    "h": 308.98,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.6031,
    "c": 0.22381,
    "h": 334.8
  },
  "luminance": 0.18861
}

Semantic roles & 50–950 ramp

primary
#CB38B5
secondary
#8FD099
accent
#E25D46
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CB38B5

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

Preview Lab → · Contrast checker → · Palette generator →

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