#CD40D4#CD40D4

#CD40D4 is a light, highly saturated purple. Relative luminance 0.214; OKLCH L 62.9% C 0.239 H 325.9°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#CD40D4
RGBrgb(205, 64, 212)
HSLhsl(297, 63%, 54%)
HSVhsv(297, 70%, 83%)
CMYKcmyk(3.3%, 69.8%, 0%, 16.9%)
CIE-LABlab(53.39, 72.13, -48.21)
CIE-LCHlch(53.39, 86.76, 326.24°)
OKLaboklab(62.94% 0.198 -0.1339)
OKLCHoklch(62.94% 0.239 325.9)
XYZxyz(38.8931, 21.4020, 64.3570)
Luminance0.2140 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD40D4 #47D440
analogous
#8340D4 #CD40D4 #D44091
triadic
#CD40D4 #D4CD40 #40D4CD
tetradic
#CD40D4 #D48340 #47D440 #4091D4
square
#CD40D4 #D48340 #47D440 #4091D4
split-complementary
#CD40D4 #91D440 #40D483
monochromatic
#791C7D #A927AF #CD40D4 #DA72DF #E7A4EA

Accessibility & contrast

On white

3.98
#CD40D4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#CD40D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD40D4
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD40D4#FFFFFF#000000##000000
##CD40D41.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1D74D8
Deuteranopia (green-blind)
#6186D0
Tritanopia (blue-blind)
#D25886
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #cd40d4;
/* rgb */ color: rgb(205, 64, 212);
/* oklch */ color: oklch(62.9% 0.239 325.9);
Tailwind
colors: {
  custom: {
    50: '#e081e2',
    500: '#cd40d4',
    950: '#000000',
  },
}
SCSS
$custom: #cd40d4;
$custom-light: #e081e2;
$custom-dark: #000000;
JSON
{
  "hex": "#cd40d4",
  "rgb": {
    "r": 205,
    "g": 64,
    "b": 212
  },
  "hsl": {
    "h": 297.162,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.62942,
    "c": 0.23901,
    "h": 325.9
  },
  "luminance": 0.21399
}

Semantic roles & 50–950 ramp

primary
#CD40D4
secondary
#9BD798
accent
#E64249
background
#FEF8FD
surface
#FCF0FB
border
#D5CBD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CD40D4

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

Preview Lab → · Contrast checker → · Palette generator →

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