#CB38C4#CB38C4

#CB38C4 is a mid, highly saturated purple. Relative luminance 0.195; OKLCH L 61.1% C 0.235 H 330.1°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#CB38C4
RGBrgb(203, 56, 196)
HSLhsl(303, 59%, 51%)
HSVhsv(303, 72%, 80%)
CMYKcmyk(0%, 72.4%, 3.4%, 20.4%)
CIE-LABlab(51.28, 71.78, -42.39)
CIE-LCHlch(51.28, 83.36, 329.44°)
OKLaboklab(61.1% 0.2033 -0.117)
OKLCHoklch(61.1% 0.235 330.1)
XYZxyz(36.0064, 19.5132, 54.0839)
Luminance0.1951 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB38C4 #38CB3F
analogous
#8838CB #CB38C4 #CB387A
triadic
#CB38C4 #C4CB38 #38C4CB
tetradic
#CB38C4 #CB8838 #38CB3F #387ACB
square
#CB38C4 #CB8838 #38CB3F #387ACB
split-complementary
#CB38C4 #7ACB38 #38CB88
monochromatic
#6C1C68 #9D2997 #CB38C4 #D869D2 #E499E1

Accessibility & contrast

On white

4.28
#CB38C4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#CB38C4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB38C4
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB38C4#FFFFFF#000000##000000
##CB38C41.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#266DC8
Deuteranopia (green-blind)
#6481C0
Tritanopia (blue-blind)
#D34C7B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cb38c4;
/* rgb */ color: rgb(203, 56, 196);
/* oklch */ color: oklch(61.1% 0.235 330.1);
Tailwind
colors: {
  custom: {
    50: '#df7dd6',
    500: '#cb38c4',
    950: '#000000',
  },
}
SCSS
$custom: #cb38c4;
$custom-light: #df7dd6;
$custom-dark: #000000;
JSON
{
  "hex": "#cb38c4",
  "rgb": {
    "r": 203,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 302.857,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.61097,
    "c": 0.23455,
    "h": 330.1
  },
  "luminance": 0.1951
}

Semantic roles & 50–950 ramp

primary
#CB38C4
secondary
#8FD092
accent
#E24D46
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CB38C4

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

Preview Lab → · Contrast checker → · Palette generator →

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