#CD42A8#CD42A8

#CD42A8 is a mid, highly saturated pink. Relative luminance 0.197; OKLCH L 60.9% C 0.205 H 340.2°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#CD42A8
RGBrgb(205, 66, 168)
HSLhsl(316, 58%, 53%)
HSVhsv(316, 68%, 80%)
CMYKcmyk(0%, 67.8%, 18%, 19.6%)
CIE-LABlab(51.50, 64.65, -25.70)
CIE-LCHlch(51.50, 69.57, 338.32°)
OKLaboklab(60.89% 0.1924 -0.0693)
OKLCHoklch(60.89% 0.205 340.2)
XYZxyz(34.1938, 19.7059, 39.0410)
Luminance0.1970 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD42A8 #42CD67
analogous
#AC42CD #CD42A8 #CD4262
triadic
#CD42A8 #A8CD42 #42A8CD
tetradic
#CD42A8 #CDAC42 #42CD67 #4262CD
square
#CD42A8 #CDAC42 #42CD67 #4262CD
split-complementary
#CD42A8 #62CD42 #42CDAC
monochromatic
#761F5F #A62C85 #CD42A8 #DA72BE #E7A3D5

Accessibility & contrast

On white

4.25
#CD42A8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#CD42A8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD42A8
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD42A8#FFFFFF#000000##000000
##CD42A81.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B6DAB
Deuteranopia (green-blind)
#7683A5
Tritanopia (blue-blind)
#D9466F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cd42a8;
/* rgb */ color: rgb(205, 66, 168);
/* oklch */ color: oklch(60.9% 0.205 340.2);
Tailwind
colors: {
  custom: {
    50: '#e081c2',
    500: '#cd42a8',
    950: '#000000',
  },
}
SCSS
$custom: #cd42a8;
$custom-light: #e081c2;
$custom-dark: #000000;
JSON
{
  "hex": "#cd42a8",
  "rgb": {
    "r": 205,
    "g": 66,
    "b": 168
  },
  "hsl": {
    "h": 315.971,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.60887,
    "c": 0.20451,
    "h": 340.2
  },
  "luminance": 0.19703
}

Semantic roles & 50–950 ramp

primary
#CD42A8
secondary
#97D3A7
accent
#E17046
background
#FEF8FB
surface
#FCEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #CD42A8

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

Preview Lab → · Contrast checker → · Palette generator →

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