#CB38C3#CB38C3

#CB38C3 is a mid, highly saturated purple. Relative luminance 0.195; OKLCH L 61.0% C 0.234 H 330.4°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#CB38C3
RGBrgb(203, 56, 195)
HSLhsl(303, 59%, 51%)
HSVhsv(303, 72%, 80%)
CMYKcmyk(0%, 72.4%, 3.9%, 20.4%)
CIE-LABlab(51.23, 71.62, -41.89)
CIE-LCHlch(51.23, 82.97, 329.68°)
OKLaboklab(61.04% 0.2033 -0.1156)
OKLCHoklch(61.04% 0.234 330.4)
XYZxyz(35.8930, 19.4678, 53.4864)
Luminance0.1946 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB38C3 #38CB40
analogous
#8938CB #CB38C3 #CB3879
triadic
#CB38C3 #C3CB38 #38C3CB
tetradic
#CB38C3 #CB8938 #38CB40 #3879CB
square
#CB38C3 #CB8938 #38CB40 #3879CB
split-complementary
#CB38C3 #79CB38 #38CB89
monochromatic
#6C1C68 #9D2997 #CB38C3 #D869D2 #E499E0

Accessibility & contrast

On white

4.29
#CB38C3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#CB38C3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB38C3
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB38C3#FFFFFF#000000##000000
##CB38C31.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#286DC7
Deuteranopia (green-blind)
#6581BF
Tritanopia (blue-blind)
#D34B7A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cb38c3;
/* rgb */ color: rgb(203, 56, 195);
/* oklch */ color: oklch(61.0% 0.234 330.4);
Tailwind
colors: {
  custom: {
    50: '#df7dd5',
    500: '#cb38c3',
    950: '#000000',
  },
}
SCSS
$custom: #cb38c3;
$custom-light: #df7dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#cb38c3",
  "rgb": {
    "r": 203,
    "g": 56,
    "b": 195
  },
  "hsl": {
    "h": 303.265,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.61042,
    "c": 0.23382,
    "h": 330.4
  },
  "luminance": 0.19465
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CB38C3

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

Preview Lab → · Contrast checker → · Palette generator →

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