#CD40CD#CD40CD

#CD40CD is a light, highly saturated purple. Relative luminance 0.211; OKLCH L 62.6% C 0.234 H 327.9°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#CD40CD
RGBrgb(205, 64, 205)
HSLhsl(300, 59%, 53%)
HSVhsv(300, 69%, 80%)
CMYKcmyk(0%, 68.8%, 0%, 19.6%)
CIE-LABlab(53.01, 70.97, -44.81)
CIE-LCHlch(53.01, 83.94, 327.74°)
OKLaboklab(62.55% 0.1979 -0.124)
OKLCHoklch(62.55% 0.234 327.9)
XYZxyz(38.0292, 21.0564, 59.8071)
Luminance0.2105 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD40CD #40CD40
analogous
#8640CD #CD40CD #CD4086
triadic
#CD40CD #CDCD40 #40CDCD
tetradic
#CD40CD #CD8640 #40CD40 #4086CD
square
#CD40CD #CD8640 #40CD40 #4086CD
split-complementary
#CD40CD #86CD40 #40CD86
monochromatic
#741E74 #A52BA5 #CD40CD #DA71DA #E6A1E6

Accessibility & contrast

On white

4.03
#CD40CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#CD40CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD40CD
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD40CD#FFFFFF#000000##000000
##CD40CD1.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2973D1
Deuteranopia (green-blind)
#6585C9
Tritanopia (blue-blind)
#D35582
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #cd40cd;
/* rgb */ color: rgb(205, 64, 205);
/* oklch */ color: oklch(62.6% 0.234 327.9);
Tailwind
colors: {
  custom: {
    50: '#e081dd',
    500: '#cd40cd',
    950: '#000000',
  },
}
SCSS
$custom: #cd40cd;
$custom-light: #e081dd;
$custom-dark: #000000;
JSON
{
  "hex": "#cd40cd",
  "rgb": {
    "r": 205,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 300,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.62552,
    "c": 0.23357,
    "h": 327.9
  },
  "luminance": 0.21054
}

Semantic roles & 50–950 ramp

primary
#CD40CD
secondary
#96D396
accent
#E24646
background
#FEF8FD
surface
#FCF0FB
border
#D5CBD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CD40CD

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

Preview Lab → · Contrast checker → · Palette generator →

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