#CD40D1#CD40D1

#CD40D1 is a light, highly saturated purple. Relative luminance 0.212; OKLCH L 62.8% C 0.237 H 326.8°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#CD40D1
RGBrgb(205, 64, 209)
HSLhsl(298, 61%, 54%)
HSVhsv(298, 69%, 82%)
CMYKcmyk(1.9%, 69.4%, 0%, 18%)
CIE-LABlab(53.22, 71.63, -46.76)
CIE-LCHlch(53.22, 85.54, 326.86°)
OKLaboklab(62.77% 0.198 -0.1297)
OKLCHoklch(62.77% 0.237 326.8)
XYZxyz(38.5182, 21.2520, 62.3825)
Luminance0.2125 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD40D1 #44D140
analogous
#8440D1 #CD40D1 #D1408C
triadic
#CD40D1 #D1CD40 #40D1CD
tetradic
#CD40D1 #D18440 #44D140 #408CD1
square
#CD40D1 #D18440 #44D140 #408CD1
split-complementary
#CD40D1 #8CD140 #40D184
monochromatic
#771D79 #A729AB #CD40D1 #DA71DD #E7A3E9

Accessibility & contrast

On white

4.00
#CD40D1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#CD40D1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD40D1
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD40D1#FFFFFF#000000##000000
##CD40D11.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2274D5
Deuteranopia (green-blind)
#6285CD
Tritanopia (blue-blind)
#D35684
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #cd40d1;
/* rgb */ color: rgb(205, 64, 209);
/* oklch */ color: oklch(62.8% 0.237 326.8);
Tailwind
colors: {
  custom: {
    50: '#e081e0',
    500: '#cd40d1',
    950: '#000000',
  },
}
SCSS
$custom: #cd40d1;
$custom-light: #e081e0;
$custom-dark: #000000;
JSON
{
  "hex": "#cd40d1",
  "rgb": {
    "r": 205,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 298.345,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.62773,
    "c": 0.23668,
    "h": 326.8
  },
  "luminance": 0.21249
}

Semantic roles & 50–950 ramp

primary
#CD40D1
secondary
#99D597
accent
#E44448
background
#FEF8FD
surface
#FCF0FB
border
#D5CBD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CD40D1

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

Preview Lab → · Contrast checker → · Palette generator →

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