#CB38BC#CB38BC

#CB38BC is a mid, highly saturated purple. Relative luminance 0.192; OKLCH L 60.7% C 0.229 H 332.5°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#CB38BC
RGBrgb(203, 56, 188)
HSLhsl(306, 59%, 51%)
HSVhsv(306, 72%, 80%)
CMYKcmyk(0%, 72.4%, 7.4%, 20.4%)
CIE-LABlab(50.87, 70.55, -38.40)
CIE-LCHlch(50.87, 80.32, 331.44°)
OKLaboklab(60.67% 0.203 -0.1055)
OKLCHoklch(60.67% 0.229 332.5)
XYZxyz(35.1200, 19.1586, 49.4155)
Luminance0.1916 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB38BC #38CB47
analogous
#9038CB #CB38BC #CB3873
triadic
#CB38BC #BCCB38 #38BCCB
tetradic
#CB38BC #CB9038 #38CB47 #3873CB
square
#CB38BC #CB9038 #38CB47 #3873CB
split-complementary
#CB38BC #73CB38 #38CB90
monochromatic
#6C1C64 #9D2991 #CB38BC #D869CC #E499DD

Accessibility & contrast

On white

4.35
#CB38BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#CB38BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB38BC
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB38BC#FFFFFF#000000##000000
##CB38BC1.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#306CC0
Deuteranopia (green-blind)
#6881B8
Tritanopia (blue-blind)
#D44877
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #cb38bc;
/* rgb */ color: rgb(203, 56, 188);
/* oklch */ color: oklch(60.7% 0.229 332.5);
Tailwind
colors: {
  custom: {
    50: '#df7dd0',
    500: '#cb38bc',
    950: '#000000',
  },
}
SCSS
$custom: #cb38bc;
$custom-light: #df7dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#cb38bc",
  "rgb": {
    "r": 203,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 306.122,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.60669,
    "c": 0.22875,
    "h": 332.5
  },
  "luminance": 0.19156
}

Semantic roles & 50–950 ramp

primary
#CB38BC
secondary
#8FD095
accent
#E25646
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #CB38BC

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

Preview Lab → · Contrast checker → · Palette generator →

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