#CD40C1#CD40C1

#CD40C1 is a mid, highly saturated purple. Relative luminance 0.205; OKLCH L 61.9% C 0.225 H 331.6°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#CD40C1
RGBrgb(205, 64, 193)
HSLhsl(305, 59%, 53%)
HSVhsv(305, 69%, 80%)
CMYKcmyk(0%, 68.8%, 5.9%, 19.6%)
CIE-LABlab(52.40, 69.07, -38.87)
CIE-LCHlch(52.40, 79.26, 330.63°)
OKLaboklab(61.91% 0.1974 -0.1069)
OKLCHoklch(61.91% 0.225 331.6)
XYZxyz(36.6359, 20.4991, 52.4689)
Luminance0.2050 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD40C1 #40CD4C
analogous
#9240CD #CD40C1 #CD407B
triadic
#CD40C1 #C1CD40 #40C1CD
tetradic
#CD40C1 #CD9240 #40CD4C #407BCD
square
#CD40C1 #CD9240 #40CD4C #407BCD
split-complementary
#CD40C1 #7BCD40 #40CD92
monochromatic
#741E6D #A52B9A #CD40C1 #DA71D1 #E6A1E0

Accessibility & contrast

On white

4.12
#CD40C1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#CD40C1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD40C1
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD40C1#FFFFFF#000000##000000
##CD40C11.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3770C5
Deuteranopia (green-blind)
#6B84BD
Tritanopia (blue-blind)
#D54F7C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cd40c1;
/* rgb */ color: rgb(205, 64, 193);
/* oklch */ color: oklch(61.9% 0.225 331.6);
Tailwind
colors: {
  custom: {
    50: '#e081d4',
    500: '#cd40c1',
    950: '#000000',
  },
}
SCSS
$custom: #cd40c1;
$custom-light: #e081d4;
$custom-dark: #000000;
JSON
{
  "hex": "#cd40c1",
  "rgb": {
    "r": 205,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 305.106,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.6191,
    "c": 0.22451,
    "h": 331.6
  },
  "luminance": 0.20496
}

Semantic roles & 50–950 ramp

primary
#CD40C1
secondary
#96D39B
accent
#E25346
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CD40C1

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

Preview Lab → · Contrast checker → · Palette generator →

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