#CD42A7#CD42A7

#CD42A7 is a mid, highly saturated pink. Relative luminance 0.197; OKLCH L 60.8% C 0.204 H 340.6°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#CD42A7
RGBrgb(205, 66, 167)
HSLhsl(316, 58%, 53%)
HSVhsv(316, 68%, 80%)
CMYKcmyk(0%, 67.8%, 18.5%, 19.6%)
CIE-LABlab(51.46, 64.51, -25.18)
CIE-LCHlch(51.46, 69.25, 338.68°)
OKLaboklab(60.84% 0.1923 -0.0678)
OKLCHoklch(60.84% 0.204 340.6)
XYZxyz(34.1010, 19.6688, 38.5522)
Luminance0.1967 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD42A7 #42CD68
analogous
#AD42CD #CD42A7 #CD4261
triadic
#CD42A7 #A7CD42 #42A7CD
tetradic
#CD42A7 #CDAD42 #42CD68 #4261CD
square
#CD42A7 #CDAD42 #42CD68 #4261CD
split-complementary
#CD42A7 #61CD42 #42CDAD
monochromatic
#761F5E #A62C85 #CD42A7 #DA72BE #E7A3D4

Accessibility & contrast

On white

4.26
#CD42A7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#CD42A7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD42A7
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD42A7#FFFFFF#000000##000000
##CD42A71.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B6CAA
Deuteranopia (green-blind)
#7783A4
Tritanopia (blue-blind)
#D9456F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cd42a7;
/* rgb */ color: rgb(205, 66, 167);
/* oklch */ color: oklch(60.8% 0.204 340.6);
Tailwind
colors: {
  custom: {
    50: '#e081c1',
    500: '#cd42a7',
    950: '#000000',
  },
}
SCSS
$custom: #cd42a7;
$custom-light: #e081c1;
$custom-dark: #000000;
JSON
{
  "hex": "#cd42a7",
  "rgb": {
    "r": 205,
    "g": 66,
    "b": 167
  },
  "hsl": {
    "h": 316.403,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.60842,
    "c": 0.20386,
    "h": 340.6
  },
  "luminance": 0.19666
}

Semantic roles & 50–950 ramp

primary
#CD42A7
secondary
#97D3A8
accent
#E17146
background
#FEF8FB
surface
#FCEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #CD42A7

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

Preview Lab → · Contrast checker → · Palette generator →

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