#CD40D2#CD40D2

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

Color values

HEX#CD40D2
RGBrgb(205, 64, 210)
HSLhsl(298, 62%, 54%)
HSVhsv(298, 70%, 82%)
CMYKcmyk(2.4%, 69.5%, 0%, 17.6%)
CIE-LABlab(53.28, 71.79, -47.24)
CIE-LCHlch(53.28, 85.94, 326.65°)
OKLaboklab(62.83% 0.198 -0.1311)
OKLCHoklch(62.83% 0.237 326.5)
XYZxyz(38.6424, 21.3017, 63.0366)
Luminance0.2130 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD40D2 #45D240
analogous
#8440D2 #CD40D2 #D2408E
triadic
#CD40D2 #D2CD40 #40D2CD
tetradic
#CD40D2 #D28440 #45D240 #408ED2
square
#CD40D2 #D28440 #45D240 #408ED2
split-complementary
#CD40D2 #8ED240 #40D284
monochromatic
#771D7B #A829AC #CD40D2 #DA72DE #E7A3E9

Accessibility & contrast

On white

3.99
#CD40D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#CD40D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD40D2
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD40D2#FFFFFF#000000##000000
##CD40D21.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2174D6
Deuteranopia (green-blind)
#6285CE
Tritanopia (blue-blind)
#D25785
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #cd40d2;
/* rgb */ color: rgb(205, 64, 210);
/* oklch */ color: oklch(62.8% 0.237 326.5);
Tailwind
colors: {
  custom: {
    50: '#e081e0',
    500: '#cd40d2',
    950: '#000000',
  },
}
SCSS
$custom: #cd40d2;
$custom-light: #e081e0;
$custom-dark: #000000;
JSON
{
  "hex": "#cd40d2",
  "rgb": {
    "r": 205,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 297.945,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.62829,
    "c": 0.23745,
    "h": 326.5
  },
  "luminance": 0.21299
}

Semantic roles & 50–950 ramp

primary
#CD40D2
secondary
#9AD698
accent
#E54348
background
#FEF8FD
surface
#FCF0FB
border
#D5CBD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CD40D2

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

Preview Lab → · Contrast checker → · Palette generator →

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