#CD40D5#CD40D5

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

Color values

HEX#CD40D5
RGBrgb(205, 64, 213)
HSLhsl(297, 64%, 54%)
HSVhsv(297, 70%, 84%)
CMYKcmyk(3.8%, 70%, 0%, 16.5%)
CIE-LABlab(53.44, 72.29, -48.70)
CIE-LCHlch(53.44, 87.16, 326.04°)
OKLaboklab(63% 0.198 -0.1353)
OKLCHoklch(63% 0.24 325.6)
XYZxyz(39.0196, 21.4526, 65.0234)
Luminance0.2145 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD40D5 #48D540
analogous
#8340D5 #CD40D5 #D54092
triadic
#CD40D5 #D5CD40 #40D5CD
tetradic
#CD40D5 #D58340 #48D540 #4092D5
square
#CD40D5 #D58340 #48D540 #4092D5
split-complementary
#CD40D5 #92D540 #40D583
monochromatic
#791C7F #A927B1 #CD40D5 #DA72E0 #E7A4EB

Accessibility & contrast

On white

3.97
#CD40D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#CD40D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD40D5
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD40D5#FFFFFF#000000##000000
##CD40D51.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#1A74D9
Deuteranopia (green-blind)
#6086D1
Tritanopia (blue-blind)
#D25887
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #cd40d5;
/* rgb */ color: rgb(205, 64, 213);
/* oklch */ color: oklch(63.0% 0.240 325.6);
Tailwind
colors: {
  custom: {
    50: '#e081e2',
    500: '#cd40d5',
    950: '#000000',
  },
}
SCSS
$custom: #cd40d5;
$custom-light: #e081e2;
$custom-dark: #000000;
JSON
{
  "hex": "#cd40d5",
  "rgb": {
    "r": 205,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 296.779,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.62999,
    "c": 0.2398,
    "h": 325.6
  },
  "luminance": 0.2145
}

Semantic roles & 50–950 ramp

primary
#CD40D5
secondary
#9CD899
accent
#E7414A
background
#FEF8FD
surface
#FCF0FB
border
#D5CBD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CD40D5

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

Preview Lab → · Contrast checker → · Palette generator →

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