#CD40C8#CD40C8

#CD40C8 is a light, highly saturated purple. Relative luminance 0.208; OKLCH L 62.3% C 0.230 H 329.4°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#CD40C8
RGBrgb(205, 64, 200)
HSLhsl(302, 59%, 53%)
HSVhsv(302, 69%, 80%)
CMYKcmyk(0%, 68.8%, 2.4%, 19.6%)
CIE-LABlab(52.75, 70.17, -42.35)
CIE-LCHlch(52.75, 81.96, 328.89°)
OKLaboklab(62.28% 0.1978 -0.1169)
OKLCHoklch(62.28% 0.23 329.4)
XYZxyz(37.4353, 20.8188, 56.6791)
Luminance0.2082 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD40C8 #40CD45
analogous
#8C40CD #CD40C8 #CD4081
triadic
#CD40C8 #C8CD40 #40C8CD
tetradic
#CD40C8 #CD8C40 #40CD45 #4081CD
square
#CD40C8 #CD8C40 #40CD45 #4081CD
split-complementary
#CD40C8 #81CD40 #40CD8C
monochromatic
#741E71 #A52BA0 #CD40C8 #DA71D6 #E6A1E4

Accessibility & contrast

On white

4.07
#CD40C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#CD40C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD40C8
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD40C8#FFFFFF#000000##000000
##CD40C81.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F72CC
Deuteranopia (green-blind)
#6785C4
Tritanopia (blue-blind)
#D4527F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #cd40c8;
/* rgb */ color: rgb(205, 64, 200);
/* oklch */ color: oklch(62.3% 0.230 329.4);
Tailwind
colors: {
  custom: {
    50: '#e081d9',
    500: '#cd40c8',
    950: '#000000',
  },
}
SCSS
$custom: #cd40c8;
$custom-light: #e081d9;
$custom-dark: #000000;
JSON
{
  "hex": "#cd40c8",
  "rgb": {
    "r": 205,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 302.128,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.6228,
    "c": 0.22976,
    "h": 329.4
  },
  "luminance": 0.20816
}

Semantic roles & 50–950 ramp

primary
#CD40C8
secondary
#96D398
accent
#E24C46
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B15
muted
#847C83

Preview Lab

Preview with #CD40C8

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

Preview Lab → · Contrast checker → · Palette generator →

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