#CB38C1#CB38C1

#CB38C1 is a mid, highly saturated purple. Relative luminance 0.194; OKLCH L 60.9% C 0.232 H 331.0°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#CB38C1
RGBrgb(203, 56, 193)
HSLhsl(304, 59%, 51%)
HSVhsv(304, 72%, 80%)
CMYKcmyk(0%, 72.4%, 4.9%, 20.4%)
CIE-LABlab(51.13, 71.31, -40.90)
CIE-LCHlch(51.13, 82.21, 330.16°)
OKLaboklab(60.93% 0.2032 -0.1127)
OKLCHoklch(60.93% 0.232 331)
XYZxyz(35.6684, 19.3779, 52.3035)
Luminance0.1938 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB38C1 #38CB42
analogous
#8C38CB #CB38C1 #CB3877
triadic
#CB38C1 #C1CB38 #38C1CB
tetradic
#CB38C1 #CB8C38 #38CB42 #3877CB
square
#CB38C1 #CB8C38 #38CB42 #3877CB
split-complementary
#CB38C1 #77CB38 #38CB8C
monochromatic
#6C1C67 #9D2995 #CB38C1 #D869D0 #E499DF

Accessibility & contrast

On white

4.31
#CB38C1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#CB38C1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB38C1
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB38C1#FFFFFF#000000##000000
##CB38C11.004.314.884.88
#FFFFFF4.311.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A6DC5
Deuteranopia (green-blind)
#6681BD
Tritanopia (blue-blind)
#D34A79
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cb38c1;
/* rgb */ color: rgb(203, 56, 193);
/* oklch */ color: oklch(60.9% 0.232 331.0);
Tailwind
colors: {
  custom: {
    50: '#df7dd4',
    500: '#cb38c1',
    950: '#000000',
  },
}
SCSS
$custom: #cb38c1;
$custom-light: #df7dd4;
$custom-dark: #000000;
JSON
{
  "hex": "#cb38c1",
  "rgb": {
    "r": 203,
    "g": 56,
    "b": 193
  },
  "hsl": {
    "h": 304.082,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.60934,
    "c": 0.23236,
    "h": 331
  },
  "luminance": 0.19375
}

Semantic roles & 50–950 ramp

primary
#CB38C1
secondary
#8FD093
accent
#E25146
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CB38C1

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

Preview Lab → · Contrast checker → · Palette generator →

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