#CB38C6#CB38C6

#CB38C6 is a mid, highly saturated purple. Relative luminance 0.196; OKLCH L 61.2% C 0.236 H 329.5°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#CB38C6
RGBrgb(203, 56, 198)
HSLhsl(302, 59%, 51%)
HSVhsv(302, 72%, 80%)
CMYKcmyk(0%, 72.4%, 2.5%, 20.4%)
CIE-LABlab(51.39, 72.09, -43.38)
CIE-LCHlch(51.39, 84.13, 328.96°)
OKLaboklab(61.21% 0.2033 -0.1199)
OKLCHoklch(61.21% 0.236 329.5)
XYZxyz(36.2356, 19.6048, 55.2907)
Luminance0.1960 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB38C6 #38CB3D
analogous
#8638CB #CB38C6 #CB387C
triadic
#CB38C6 #C6CB38 #38C6CB
tetradic
#CB38C6 #CB8638 #38CB3D #387CCB
square
#CB38C6 #CB8638 #38CB3D #387CCB
split-complementary
#CB38C6 #7CCB38 #38CB86
monochromatic
#6C1C6A #9D2999 #CB38C6 #D869D4 #E499E2

Accessibility & contrast

On white

4.27
#CB38C6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#CB38C6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB38C6
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB38C6#FFFFFF#000000##000000
##CB38C61.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#236ECA
Deuteranopia (green-blind)
#6381C2
Tritanopia (blue-blind)
#D24D7C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cb38c6;
/* rgb */ color: rgb(203, 56, 198);
/* oklch */ color: oklch(61.2% 0.236 329.5);
Tailwind
colors: {
  custom: {
    50: '#df7dd8',
    500: '#cb38c6',
    950: '#000000',
  },
}
SCSS
$custom: #cb38c6;
$custom-light: #df7dd8;
$custom-dark: #000000;
JSON
{
  "hex": "#cb38c6",
  "rgb": {
    "r": 203,
    "g": 56,
    "b": 198
  },
  "hsl": {
    "h": 302.041,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.61206,
    "c": 0.23602,
    "h": 329.5
  },
  "luminance": 0.19602
}

Semantic roles & 50–950 ramp

primary
#CB38C6
secondary
#8FD091
accent
#E24B46
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CB38C6

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

Preview Lab → · Contrast checker → · Palette generator →

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