#CD40C4#CD40C4

#CD40C4 is a light, highly saturated purple. Relative luminance 0.206; OKLCH L 62.1% C 0.227 H 330.6°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#CD40C4
RGBrgb(205, 64, 196)
HSLhsl(304, 59%, 53%)
HSVhsv(304, 69%, 80%)
CMYKcmyk(0%, 68.8%, 4.4%, 19.6%)
CIE-LABlab(52.55, 69.54, -40.37)
CIE-LCHlch(52.55, 80.40, 329.86°)
OKLaboklab(62.07% 0.1976 -0.1112)
OKLCHoklch(62.07% 0.227 330.6)
XYZxyz(36.9739, 20.6343, 54.2493)
Luminance0.2063 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD40C4 #40CD49
analogous
#9040CD #CD40C4 #CD407D
triadic
#CD40C4 #C4CD40 #40C4CD
tetradic
#CD40C4 #CD9040 #40CD49 #407DCD
square
#CD40C4 #CD9040 #40CD49 #407DCD
split-complementary
#CD40C4 #7DCD40 #40CD90
monochromatic
#741E6F #A52B9D #CD40C4 #DA71D3 #E6A1E2

Accessibility & contrast

On white

4.10
#CD40C4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#CD40C4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD40C4
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD40C4#FFFFFF#000000##000000
##CD40C41.004.105.135.13
#FFFFFF4.101.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3471C8
Deuteranopia (green-blind)
#6984C0
Tritanopia (blue-blind)
#D5517D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cd40c4;
/* rgb */ color: rgb(205, 64, 196);
/* oklch */ color: oklch(62.1% 0.227 330.6);
Tailwind
colors: {
  custom: {
    50: '#e081d6',
    500: '#cd40c4',
    950: '#000000',
  },
}
SCSS
$custom: #cd40c4;
$custom-light: #e081d6;
$custom-dark: #000000;
JSON
{
  "hex": "#cd40c4",
  "rgb": {
    "r": 205,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 303.83,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.62067,
    "c": 0.22674,
    "h": 330.6
  },
  "luminance": 0.20631
}

Semantic roles & 50–950 ramp

primary
#CD40C4
secondary
#96D39A
accent
#E25046
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CD40C4

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

Preview Lab → · Contrast checker → · Palette generator →

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