#CD40D0#CD40D0

#CD40D0 is a light, highly saturated purple. Relative luminance 0.212; OKLCH L 62.7% C 0.236 H 327.1°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#CD40D0
RGBrgb(205, 64, 208)
HSLhsl(299, 61%, 53%)
HSVhsv(299, 69%, 82%)
CMYKcmyk(1.4%, 69.2%, 0%, 18.4%)
CIE-LABlab(53.17, 71.46, -46.27)
CIE-LCHlch(53.17, 85.14, 327.08°)
OKLaboklab(62.72% 0.198 -0.1283)
OKLCHoklch(62.72% 0.236 327.1)
XYZxyz(38.3948, 21.2026, 61.7325)
Luminance0.2120 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD40D0 #43D040
analogous
#8540D0 #CD40D0 #D0408B
triadic
#CD40D0 #D0CD40 #40D0CD
tetradic
#CD40D0 #D08540 #43D040 #408BD0
square
#CD40D0 #D08540 #43D040 #408BD0
split-complementary
#CD40D0 #8BD040 #40D085
monochromatic
#761E78 #A72AA9 #CD40D0 #DA71DC #E7A2E8

Accessibility & contrast

On white

4.01
#CD40D0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#CD40D0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD40D0
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD40D0#FFFFFF#000000##000000
##CD40D01.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2473D4
Deuteranopia (green-blind)
#6385CC
Tritanopia (blue-blind)
#D35684
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #cd40d0;
/* rgb */ color: rgb(205, 64, 208);
/* oklch */ color: oklch(62.7% 0.236 327.1);
Tailwind
colors: {
  custom: {
    50: '#e081df',
    500: '#cd40d0',
    950: '#000000',
  },
}
SCSS
$custom: #cd40d0;
$custom-light: #e081df;
$custom-dark: #000000;
JSON
{
  "hex": "#cd40d0",
  "rgb": {
    "r": 205,
    "g": 64,
    "b": 208
  },
  "hsl": {
    "h": 298.75,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.62718,
    "c": 0.2359,
    "h": 327.1
  },
  "luminance": 0.212
}

Semantic roles & 50–950 ramp

primary
#CD40D0
secondary
#98D597
accent
#E44447
background
#FEF8FD
surface
#FCF0FB
border
#D5CBD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CD40D0

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

Preview Lab → · Contrast checker → · Palette generator →

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