#CB38C7#CB38C7

#CB38C7 is a mid, highly saturated purple. Relative luminance 0.196; OKLCH L 61.3% C 0.237 H 329.2°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#CB38C7
RGBrgb(203, 56, 199)
HSLhsl(302, 59%, 51%)
HSVhsv(302, 72%, 80%)
CMYKcmyk(0%, 72.4%, 2%, 20.4%)
CIE-LABlab(51.44, 72.24, -43.87)
CIE-LCHlch(51.44, 84.52, 328.73°)
OKLaboklab(61.26% 0.2033 -0.1213)
OKLCHoklch(61.26% 0.237 329.2)
XYZxyz(36.3513, 19.6511, 55.9002)
Luminance0.1965 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB38C7 #38CB3C
analogous
#8638CB #CB38C7 #CB387D
triadic
#CB38C7 #C7CB38 #38C7CB
tetradic
#CB38C7 #CB8638 #38CB3C #387DCB
square
#CB38C7 #CB8638 #38CB3C #387DCB
split-complementary
#CB38C7 #7DCB38 #38CB86
monochromatic
#6C1C6A #9D299A #CB38C7 #D869D5 #E499E2

Accessibility & contrast

On white

4.26
#CB38C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#CB38C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB38C7
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB38C7#FFFFFF#000000##000000
##CB38C71.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#216ECB
Deuteranopia (green-blind)
#6281C3
Tritanopia (blue-blind)
#D24D7D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cb38c7;
/* rgb */ color: rgb(203, 56, 199);
/* oklch */ color: oklch(61.3% 0.237 329.2);
Tailwind
colors: {
  custom: {
    50: '#df7dd8',
    500: '#cb38c7',
    950: '#000000',
  },
}
SCSS
$custom: #cb38c7;
$custom-light: #df7dd8;
$custom-dark: #000000;
JSON
{
  "hex": "#cb38c7",
  "rgb": {
    "r": 203,
    "g": 56,
    "b": 199
  },
  "hsl": {
    "h": 301.633,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.61261,
    "c": 0.23676,
    "h": 329.2
  },
  "luminance": 0.19648
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CB38C7

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

Preview Lab → · Contrast checker → · Palette generator →

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