#CB40D9#CB40D9

#CB40D9 is a light, highly saturated purple. Relative luminance 0.214; OKLCH L 63.0% C 0.242 H 324.0°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#CB40D9
RGBrgb(203, 64, 217)
HSLhsl(295, 67%, 55%)
HSVhsv(295, 71%, 85%)
CMYKcmyk(6.5%, 70.5%, 0%, 14.9%)
CIE-LABlab(53.36, 72.54, -51.12)
CIE-LCHlch(53.36, 88.75, 324.83°)
OKLaboklab(62.95% 0.1957 -0.1424)
OKLCHoklch(62.95% 0.242 324)
XYZxyz(38.9853, 21.3754, 67.7046)
Luminance0.2137 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB40D9 #4ED940
analogous
#7F40D9 #CB40D9 #D9409A
triadic
#CB40D9 #D9CB40 #40D9CB
tetradic
#CB40D9 #D97F40 #4ED940 #409AD9
square
#CB40D9 #D97F40 #4ED940 #409AD9
split-complementary
#CB40D9 #9AD940 #40D97F
monochromatic
#7B1A84 #AA24B7 #CB40D9 #D973E3 #E7A6ED

Accessibility & contrast

On white

3.98
#CB40D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#CB40D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB40D9
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB40D9#FFFFFF#000000##000000
##CB40D91.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0975DD
Deuteranopia (green-blind)
#5B85D5
Tritanopia (blue-blind)
#CF5A89
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #cb40d9;
/* rgb */ color: rgb(203, 64, 217);
/* oklch */ color: oklch(63.0% 0.242 324.0);
Tailwind
colors: {
  custom: {
    50: '#df81e5',
    500: '#cb40d9',
    950: '#000000',
  },
}
SCSS
$custom: #cb40d9;
$custom-light: #df81e5;
$custom-dark: #000000;
JSON
{
  "hex": "#cb40d9",
  "rgb": {
    "r": 203,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 294.51,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.62951,
    "c": 0.24206,
    "h": 324
  },
  "luminance": 0.21373
}

Semantic roles & 50–950 ramp

primary
#CB40D9
secondary
#A0DA9A
accent
#EA3E4E
background
#FEF8FE
surface
#FCF0FC
border
#D5CBD5
text
#160B16
muted
#847C84

Preview Lab

Preview with #CB40D9

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

Preview Lab → · Contrast checker → · Palette generator →

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