#CD40C7#CD40C7

#CD40C7 is a light, highly saturated purple. Relative luminance 0.208; OKLCH L 62.2% C 0.229 H 329.7°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#CD40C7
RGBrgb(205, 64, 199)
HSLhsl(303, 59%, 53%)
HSVhsv(303, 69%, 80%)
CMYKcmyk(0%, 68.8%, 2.9%, 19.6%)
CIE-LABlab(52.70, 70.01, -41.86)
CIE-LCHlch(52.70, 81.57, 329.13°)
OKLaboklab(62.23% 0.1978 -0.1155)
OKLCHoklch(62.23% 0.229 329.7)
XYZxyz(37.3188, 20.7722, 56.0656)
Luminance0.2077 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD40C7 #40CD46
analogous
#8C40CD #CD40C7 #CD4081
triadic
#CD40C7 #C7CD40 #40C7CD
tetradic
#CD40C7 #CD8C40 #40CD46 #4081CD
square
#CD40C7 #CD8C40 #40CD46 #4081CD
split-complementary
#CD40C7 #81CD40 #40CD8C
monochromatic
#741E71 #A52BA0 #CD40C7 #DA71D5 #E6A1E3

Accessibility & contrast

On white

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

On black

5.15
#CD40C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD40C7
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD40C7#FFFFFF#000000##000000
##CD40C71.004.075.155.15
#FFFFFF4.071.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3072CB
Deuteranopia (green-blind)
#6884C3
Tritanopia (blue-blind)
#D4527F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #cd40c7;
/* rgb */ color: rgb(205, 64, 199);
/* oklch */ color: oklch(62.2% 0.229 329.7);
Tailwind
colors: {
  custom: {
    50: '#e081d8',
    500: '#cd40c7',
    950: '#000000',
  },
}
SCSS
$custom: #cd40c7;
$custom-light: #e081d8;
$custom-dark: #000000;
JSON
{
  "hex": "#cd40c7",
  "rgb": {
    "r": 205,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 302.553,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.62226,
    "c": 0.229,
    "h": 329.7
  },
  "luminance": 0.20769
}

Semantic roles & 50–950 ramp

primary
#CD40C7
secondary
#96D398
accent
#E24D46
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CD40C7

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

Preview Lab → · Contrast checker → · Palette generator →

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