#CD40A7#CD40A7

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

Color values

HEX#CD40A7
RGBrgb(205, 64, 167)
HSLhsl(316, 59%, 53%)
HSVhsv(316, 69%, 80%)
CMYKcmyk(0%, 68.8%, 18.5%, 19.6%)
CIE-LABlab(51.20, 65.25, -25.59)
CIE-LCHlch(51.20, 70.08, 338.59°)
OKLaboklab(60.65% 0.1945 -0.0689)
OKLCHoklch(60.65% 0.206 340.5)
XYZxyz(33.9862, 19.4392, 38.5140)
Luminance0.1944 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD40A7 #40CD66
analogous
#AC40CD #CD40A7 #CD4061
triadic
#CD40A7 #A7CD40 #40A7CD
tetradic
#CD40A7 #CDAC40 #40CD66 #4061CD
square
#CD40A7 #CDAC40 #40CD66 #4061CD
split-complementary
#CD40A7 #61CD40 #40CDAC
monochromatic
#741E5D #A52B84 #CD40A7 #DA71BD #E6A1D4

Accessibility & contrast

On white

4.30
#CD40A7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##CD40A7#FFFFFF#000000##000000
##CD40A71.004.304.894.89
#FFFFFF4.301.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A6CAA
Deuteranopia (green-blind)
#7682A4
Tritanopia (blue-blind)
#D9436E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cd40a7;
/* rgb */ color: rgb(205, 64, 167);
/* oklch */ color: oklch(60.7% 0.206 340.5);
Tailwind
colors: {
  custom: {
    50: '#e080c1',
    500: '#cd40a7',
    950: '#000000',
  },
}
SCSS
$custom: #cd40a7;
$custom-light: #e080c1;
$custom-dark: #000000;
JSON
{
  "hex": "#cd40a7",
  "rgb": {
    "r": 205,
    "g": 64,
    "b": 167
  },
  "hsl": {
    "h": 316.17,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.6065,
    "c": 0.20634,
    "h": 340.5
  },
  "luminance": 0.19436
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD40A7

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

Preview Lab → · Contrast checker → · Palette generator →

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