#CB38B7#CB38B7

#CB38B7 is a mid, highly saturated purple. Relative luminance 0.189; OKLCH L 60.4% C 0.225 H 334.1°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#CB38B7
RGBrgb(203, 56, 183)
HSLhsl(308, 59%, 51%)
HSVhsv(308, 72%, 80%)
CMYKcmyk(0%, 72.4%, 9.9%, 20.4%)
CIE-LABlab(50.62, 69.80, -35.88)
CIE-LCHlch(50.62, 78.48, 332.80°)
OKLaboklab(60.41% 0.2027 -0.0982)
OKLCHoklch(60.41% 0.225 334.1)
XYZxyz(34.5903, 18.9467, 46.6259)
Luminance0.1894 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB38B7 #38CB4C
analogous
#9538CB #CB38B7 #CB386D
triadic
#CB38B7 #B7CB38 #38B7CB
tetradic
#CB38B7 #CB9538 #38CB4C #386DCB
square
#CB38B7 #CB9538 #38CB4C #386DCB
split-complementary
#CB38B7 #6DCB38 #38CB95
monochromatic
#6C1C61 #9D298D #CB38B7 #D869C9 #E499DA

Accessibility & contrast

On white

4.39
#CB38B7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#CB38B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB38B7
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB38B7#FFFFFF#000000##000000
##CB38B71.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#356BBA
Deuteranopia (green-blind)
#6A80B3
Tritanopia (blue-blind)
#D54574
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #cb38b7;
/* rgb */ color: rgb(203, 56, 183);
/* oklch */ color: oklch(60.4% 0.225 334.1);
Tailwind
colors: {
  custom: {
    50: '#df7dcd',
    500: '#cb38b7',
    950: '#000000',
  },
}
SCSS
$custom: #cb38b7;
$custom-light: #df7dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#cb38b7",
  "rgb": {
    "r": 203,
    "g": 56,
    "b": 183
  },
  "hsl": {
    "h": 308.163,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.60411,
    "c": 0.22522,
    "h": 334.1
  },
  "luminance": 0.18944
}

Semantic roles & 50–950 ramp

primary
#CB38B7
secondary
#8FD098
accent
#E25B46
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #CB38B7

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

Preview Lab → · Contrast checker → · Palette generator →

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