#CD40D9#CD40D9

#CD40D9 is a light, highly saturated purple. Relative luminance 0.217; OKLCH L 63.2% C 0.243 H 324.5°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#CD40D9
RGBrgb(205, 64, 217)
HSLhsl(295, 67%, 55%)
HSVhsv(295, 71%, 85%)
CMYKcmyk(5.5%, 70.5%, 0%, 14.9%)
CIE-LABlab(53.66, 72.96, -50.62)
CIE-LCHlch(53.66, 88.80, 325.25°)
OKLaboklab(63.23% 0.1979 -0.1409)
OKLCHoklch(63.23% 0.243 324.5)
XYZxyz(39.5336, 21.6582, 67.7303)
Luminance0.2166 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD40D9 #4CD940
analogous
#8040D9 #CD40D9 #D94099
triadic
#CD40D9 #D9CD40 #40D9CD
tetradic
#CD40D9 #D98040 #4CD940 #4099D9
square
#CD40D9 #D98040 #4CD940 #4099D9
split-complementary
#CD40D9 #99D940 #40D980
monochromatic
#7C1A84 #AC24B7 #CD40D9 #DA73E3 #E8A6ED

Accessibility & contrast

On white

3.94
#CD40D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#CD40D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD40D9
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD40D9#FFFFFF#000000##000000
##CD40D91.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0F75DD
Deuteranopia (green-blind)
#5D86D5
Tritanopia (blue-blind)
#D15A89
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #cd40d9;
/* rgb */ color: rgb(205, 64, 217);
/* oklch */ color: oklch(63.2% 0.243 324.5);
Tailwind
colors: {
  custom: {
    50: '#e082e5',
    500: '#cd40d9',
    950: '#000000',
  },
}
SCSS
$custom: #cd40d9;
$custom-light: #e082e5;
$custom-dark: #000000;
JSON
{
  "hex": "#cd40d9",
  "rgb": {
    "r": 205,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 295.294,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.63229,
    "c": 0.24294,
    "h": 324.5
  },
  "luminance": 0.21656
}

Semantic roles & 50–950 ramp

primary
#CD40D9
secondary
#9FDA9A
accent
#EA3E4C
background
#FEF8FE
surface
#FCF0FC
border
#D5CBD5
text
#160B16
muted
#847C84

Preview Lab

Preview with #CD40D9

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

Preview Lab → · Contrast checker → · Palette generator →

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