#CD40C5#CD40C5

#CD40C5 is a light, highly saturated purple. Relative luminance 0.207; OKLCH L 62.1% C 0.228 H 330.3°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#CD40C5
RGBrgb(205, 64, 197)
HSLhsl(303, 59%, 53%)
HSVhsv(303, 69%, 80%)
CMYKcmyk(0%, 68.8%, 3.9%, 19.6%)
CIE-LABlab(52.60, 69.69, -40.87)
CIE-LCHlch(52.60, 80.79, 329.61°)
OKLaboklab(62.12% 0.1977 -0.1126)
OKLCHoklch(62.12% 0.228 330.3)
XYZxyz(37.0881, 20.6800, 54.8507)
Luminance0.2068 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD40C5 #40CD48
analogous
#8E40CD #CD40C5 #CD407F
triadic
#CD40C5 #C5CD40 #40C5CD
tetradic
#CD40C5 #CD8E40 #40CD48 #407FCD
square
#CD40C5 #CD8E40 #40CD48 #407FCD
split-complementary
#CD40C5 #7FCD40 #40CD8E
monochromatic
#741E6F #A52B9E #CD40C5 #DA71D4 #E6A1E2

Accessibility & contrast

On white

4.09
#CD40C5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#CD40C5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD40C5
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD40C5#FFFFFF#000000##000000
##CD40C51.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3371C9
Deuteranopia (green-blind)
#6984C1
Tritanopia (blue-blind)
#D5517E
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cd40c5;
/* rgb */ color: rgb(205, 64, 197);
/* oklch */ color: oklch(62.1% 0.228 330.3);
Tailwind
colors: {
  custom: {
    50: '#e081d7',
    500: '#cd40c5',
    950: '#000000',
  },
}
SCSS
$custom: #cd40c5;
$custom-light: #e081d7;
$custom-dark: #000000;
JSON
{
  "hex": "#cd40c5",
  "rgb": {
    "r": 205,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 303.404,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.6212,
    "c": 0.2275,
    "h": 330.3
  },
  "luminance": 0.20677
}

Semantic roles & 50–950 ramp

primary
#CD40C5
secondary
#96D399
accent
#E24F46
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CD40C5

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

Preview Lab → · Contrast checker → · Palette generator →

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