#CD40C9#CD40C9

#CD40C9 is a light, highly saturated purple. Relative luminance 0.209; OKLCH L 62.3% C 0.231 H 329.1°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#CD40C9
RGBrgb(205, 64, 201)
HSLhsl(302, 59%, 53%)
HSVhsv(302, 69%, 80%)
CMYKcmyk(0%, 68.8%, 2%, 19.6%)
CIE-LABlab(52.80, 70.33, -42.84)
CIE-LCHlch(52.80, 82.35, 328.65°)
OKLaboklab(62.33% 0.1978 -0.1183)
OKLCHoklch(62.33% 0.231 329.1)
XYZxyz(37.5525, 20.8657, 57.2966)
Luminance0.2086 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD40C9 #40CD44
analogous
#8A40CD #CD40C9 #CD4083
triadic
#CD40C9 #C9CD40 #40C9CD
tetradic
#CD40C9 #CD8A40 #40CD44 #4083CD
square
#CD40C9 #CD8A40 #40CD44 #4083CD
split-complementary
#CD40C9 #83CD40 #40CD8A
monochromatic
#741E72 #A52BA1 #CD40C9 #DA71D7 #E6A1E4

Accessibility & contrast

On white

4.06
#CD40C9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#CD40C9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD40C9
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD40C9#FFFFFF#000000##000000
##CD40C91.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E72CD
Deuteranopia (green-blind)
#6785C5
Tritanopia (blue-blind)
#D45380
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #cd40c9;
/* rgb */ color: rgb(205, 64, 201);
/* oklch */ color: oklch(62.3% 0.231 329.1);
Tailwind
colors: {
  custom: {
    50: '#e081da',
    500: '#cd40c9',
    950: '#000000',
  },
}
SCSS
$custom: #cd40c9;
$custom-light: #e081da;
$custom-dark: #000000;
JSON
{
  "hex": "#cd40c9",
  "rgb": {
    "r": 205,
    "g": 64,
    "b": 201
  },
  "hsl": {
    "h": 301.702,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.62334,
    "c": 0.23052,
    "h": 329.1
  },
  "luminance": 0.20863
}

Semantic roles & 50–950 ramp

primary
#CD40C9
secondary
#96D398
accent
#E24B46
background
#FEF8FD
surface
#FCEFFB
border
#D5CAD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CD40C9

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

Preview Lab → · Contrast checker → · Palette generator →

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