#CD40C0#CD40C0

#CD40C0 is a mid, highly saturated purple. Relative luminance 0.205; OKLCH L 61.9% C 0.224 H 331.9°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#CD40C0
RGBrgb(205, 64, 192)
HSLhsl(306, 59%, 53%)
HSVhsv(306, 69%, 80%)
CMYKcmyk(0%, 68.8%, 6.3%, 19.6%)
CIE-LABlab(52.35, 68.91, -38.37)
CIE-LCHlch(52.35, 78.88, 330.89°)
OKLaboklab(61.86% 0.1974 -0.1054)
OKLCHoklch(61.86% 0.224 331.9)
XYZxyz(36.5247, 20.4546, 51.8834)
Luminance0.2045 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD40C0 #40CD4D
analogous
#9340CD #CD40C0 #CD4079
triadic
#CD40C0 #C0CD40 #40C0CD
tetradic
#CD40C0 #CD9340 #40CD4D #4079CD
square
#CD40C0 #CD9340 #40CD4D #4079CD
split-complementary
#CD40C0 #79CD40 #40CD93
monochromatic
#741E6C #A52B99 #CD40C0 #DA71D0 #E6A1E0

Accessibility & contrast

On white

4.13
#CD40C0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#CD40C0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD40C0
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD40C0#FFFFFF#000000##000000
##CD40C01.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3870C4
Deuteranopia (green-blind)
#6B84BC
Tritanopia (blue-blind)
#D54F7B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cd40c0;
/* rgb */ color: rgb(205, 64, 192);
/* oklch */ color: oklch(61.9% 0.224 331.9);
Tailwind
colors: {
  custom: {
    50: '#e081d3',
    500: '#cd40c0',
    950: '#000000',
  },
}
SCSS
$custom: #cd40c0;
$custom-light: #e081d3;
$custom-dark: #000000;
JSON
{
  "hex": "#cd40c0",
  "rgb": {
    "r": 205,
    "g": 64,
    "b": 192
  },
  "hsl": {
    "h": 305.532,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.61859,
    "c": 0.22377,
    "h": 331.9
  },
  "luminance": 0.20452
}

Semantic roles & 50–950 ramp

primary
#CD40C0
secondary
#96D39B
accent
#E25446
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CD40C0

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

Preview Lab → · Contrast checker → · Palette generator →

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