#CB38C2#CB38C2

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

Color values

HEX#CB38C2
RGBrgb(203, 56, 194)
HSLhsl(304, 59%, 51%)
HSVhsv(304, 72%, 80%)
CMYKcmyk(0%, 72.4%, 4.4%, 20.4%)
CIE-LABlab(51.18, 71.47, -41.40)
CIE-LCHlch(51.18, 82.59, 329.92°)
OKLaboklab(60.99% 0.2032 -0.1141)
OKLCHoklch(60.99% 0.233 330.7)
XYZxyz(35.7803, 19.4227, 52.8929)
Luminance0.1942 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB38C2 #38CB41
analogous
#8A38CB #CB38C2 #CB3879
triadic
#CB38C2 #C2CB38 #38C2CB
tetradic
#CB38C2 #CB8A38 #38CB41 #3879CB
square
#CB38C2 #CB8A38 #38CB41 #3879CB
split-complementary
#CB38C2 #79CB38 #38CB8A
monochromatic
#6C1C67 #9D2996 #CB38C2 #D869D1 #E499E0

Accessibility & contrast

On white

4.30
#CB38C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##CB38C2#FFFFFF#000000##000000
##CB38C21.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#296DC6
Deuteranopia (green-blind)
#6581BE
Tritanopia (blue-blind)
#D34B7A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cb38c2;
/* rgb */ color: rgb(203, 56, 194);
/* oklch */ color: oklch(61.0% 0.233 330.7);
Tailwind
colors: {
  custom: {
    50: '#df7dd5',
    500: '#cb38c2',
    950: '#000000',
  },
}
SCSS
$custom: #cb38c2;
$custom-light: #df7dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#cb38c2",
  "rgb": {
    "r": 203,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 303.673,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.60988,
    "c": 0.23308,
    "h": 330.7
  },
  "luminance": 0.1942
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CB38C2

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

Preview Lab → · Contrast checker → · Palette generator →

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