#CB38C5#CB38C5

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

Color values

HEX#CB38C5
RGBrgb(203, 56, 197)
HSLhsl(302, 59%, 51%)
HSVhsv(302, 72%, 80%)
CMYKcmyk(0%, 72.4%, 3%, 20.4%)
CIE-LABlab(51.33, 71.93, -42.88)
CIE-LCHlch(51.33, 83.74, 329.20°)
OKLaboklab(61.15% 0.2033 -0.1184)
OKLCHoklch(61.15% 0.235 329.8)
XYZxyz(36.1206, 19.5588, 54.6853)
Luminance0.1956 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB38C5 #38CB3E
analogous
#8738CB #CB38C5 #CB387B
triadic
#CB38C5 #C5CB38 #38C5CB
tetradic
#CB38C5 #CB8738 #38CB3E #387BCB
square
#CB38C5 #CB8738 #38CB3E #387BCB
split-complementary
#CB38C5 #7BCB38 #38CB87
monochromatic
#6C1C69 #9D2998 #CB38C5 #D869D3 #E499E1

Accessibility & contrast

On white

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

On black

4.91
#CB38C5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB38C5
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB38C5#FFFFFF#000000##000000
##CB38C51.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#256EC9
Deuteranopia (green-blind)
#6481C1
Tritanopia (blue-blind)
#D24C7C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cb38c5;
/* rgb */ color: rgb(203, 56, 197);
/* oklch */ color: oklch(61.2% 0.235 329.8);
Tailwind
colors: {
  custom: {
    50: '#df7dd7',
    500: '#cb38c5',
    950: '#000000',
  },
}
SCSS
$custom: #cb38c5;
$custom-light: #df7dd7;
$custom-dark: #000000;
JSON
{
  "hex": "#cb38c5",
  "rgb": {
    "r": 203,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 302.449,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.61151,
    "c": 0.23528,
    "h": 329.8
  },
  "luminance": 0.19556
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CB38C5

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

Preview Lab → · Contrast checker → · Palette generator →

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