#CD40A8#CD40A8

#CD40A8 is a mid, highly saturated pink. Relative luminance 0.195; OKLCH L 60.7% C 0.207 H 340.1°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#CD40A8
RGBrgb(205, 64, 168)
HSLhsl(316, 59%, 53%)
HSVhsv(316, 69%, 80%)
CMYKcmyk(0%, 68.8%, 18%, 19.6%)
CIE-LABlab(51.24, 65.38, -26.11)
CIE-LCHlch(51.24, 70.40, 338.23°)
OKLaboklab(60.7% 0.1947 -0.0704)
OKLCHoklch(60.7% 0.207 340.1)
XYZxyz(34.0790, 19.4763, 39.0027)
Luminance0.1947 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD40A8 #40CD65
analogous
#AC40CD #CD40A8 #CD4061
triadic
#CD40A8 #A8CD40 #40A8CD
tetradic
#CD40A8 #CDAC40 #40CD65 #4061CD
square
#CD40A8 #CDAC40 #40CD65 #4061CD
split-complementary
#CD40A8 #61CD40 #40CDAC
monochromatic
#741E5E #A52B85 #CD40A8 #DA71BE #E6A1D4

Accessibility & contrast

On white

4.29
#CD40A8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#CD40A8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD40A8
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD40A8#FFFFFF#000000##000000
##CD40A81.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#496CAB
Deuteranopia (green-blind)
#7582A5
Tritanopia (blue-blind)
#D9446E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cd40a8;
/* rgb */ color: rgb(205, 64, 168);
/* oklch */ color: oklch(60.7% 0.207 340.1);
Tailwind
colors: {
  custom: {
    50: '#e080c2',
    500: '#cd40a8',
    950: '#000000',
  },
}
SCSS
$custom: #cd40a8;
$custom-light: #e080c2;
$custom-dark: #000000;
JSON
{
  "hex": "#cd40a8",
  "rgb": {
    "r": 205,
    "g": 64,
    "b": 168
  },
  "hsl": {
    "h": 315.745,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.60695,
    "c": 0.20699,
    "h": 340.1
  },
  "luminance": 0.19473
}

Semantic roles & 50–950 ramp

primary
#CD40A8
secondary
#96D3A6
accent
#E26F46
background
#FEF8FB
surface
#FCEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #CD40A8

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

Preview Lab → · Contrast checker → · Palette generator →

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