#CD40C3#CD40C3

#CD40C3 is a light, highly saturated purple. Relative luminance 0.206; OKLCH L 62.0% C 0.226 H 331.0°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#CD40C3
RGBrgb(205, 64, 195)
HSLhsl(304, 59%, 53%)
HSVhsv(304, 69%, 80%)
CMYKcmyk(0%, 68.8%, 4.9%, 19.6%)
CIE-LABlab(52.50, 69.38, -39.87)
CIE-LCHlch(52.50, 80.02, 330.11°)
OKLaboklab(62.02% 0.1976 -0.1097)
OKLCHoklch(62.02% 0.226 331)
XYZxyz(36.8605, 20.5889, 53.6518)
Luminance0.2059 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD40C3 #40CD4A
analogous
#9040CD #CD40C3 #CD407D
triadic
#CD40C3 #C3CD40 #40C3CD
tetradic
#CD40C3 #CD9040 #40CD4A #407DCD
square
#CD40C3 #CD9040 #40CD4A #407DCD
split-complementary
#CD40C3 #7DCD40 #40CD90
monochromatic
#741E6E #A52B9C #CD40C3 #DA71D2 #E6A1E1

Accessibility & contrast

On white

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

On black

5.12
#CD40C3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD40C3
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD40C3#FFFFFF#000000##000000
##CD40C31.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3571C7
Deuteranopia (green-blind)
#6A84BF
Tritanopia (blue-blind)
#D5507D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cd40c3;
/* rgb */ color: rgb(205, 64, 195);
/* oklch */ color: oklch(62.0% 0.226 331.0);
Tailwind
colors: {
  custom: {
    50: '#e081d5',
    500: '#cd40c3',
    950: '#000000',
  },
}
SCSS
$custom: #cd40c3;
$custom-light: #e081d5;
$custom-dark: #000000;
JSON
{
  "hex": "#cd40c3",
  "rgb": {
    "r": 205,
    "g": 64,
    "b": 195
  },
  "hsl": {
    "h": 304.255,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.62015,
    "c": 0.226,
    "h": 331
  },
  "luminance": 0.20586
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD40C3

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

Preview Lab → · Contrast checker → · Palette generator →

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