#CD42A1#CD42A1

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

Color values

HEX#CD42A1
RGBrgb(205, 66, 161)
HSLhsl(319, 58%, 53%)
HSVhsv(319, 68%, 80%)
CMYKcmyk(0%, 67.8%, 21.5%, 19.6%)
CIE-LABlab(51.21, 63.69, -22.03)
CIE-LCHlch(51.21, 67.39, 340.92°)
OKLaboklab(60.58% 0.1912 -0.0589)
OKLCHoklch(60.58% 0.2 342.9)
XYZxyz(33.5592, 19.4521, 35.6985)
Luminance0.1945 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD42A1 #42CD6E
analogous
#B442CD #CD42A1 #CD425B
triadic
#CD42A1 #A1CD42 #42A1CD
tetradic
#CD42A1 #CDB442 #42CD6E #425BCD
square
#CD42A1 #CDB442 #42CD6E #425BCD
split-complementary
#CD42A1 #5BCD42 #42CDB4
monochromatic
#761F5A #A62C7F #CD42A1 #DA72B9 #E7A3D1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CD42A1#FFFFFF#000000##000000
##CD42A11.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)
#4F6BA4
Deuteranopia (green-blind)
#79829E
Tritanopia (blue-blind)
#DA436C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cd42a1;
/* rgb */ color: rgb(205, 66, 161);
/* oklch */ color: oklch(60.6% 0.200 342.9);
Tailwind
colors: {
  custom: {
    50: '#e081bd',
    500: '#cd42a1',
    950: '#000000',
  },
}
SCSS
$custom: #cd42a1;
$custom-light: #e081bd;
$custom-dark: #000000;
JSON
{
  "hex": "#cd42a1",
  "rgb": {
    "r": 205,
    "g": 66,
    "b": 161
  },
  "hsl": {
    "h": 318.993,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.60579,
    "c": 0.20004,
    "h": 342.9
  },
  "luminance": 0.19449
}

Semantic roles & 50–950 ramp

primary
#CD42A1
secondary
#97D3AA
accent
#E17746
background
#FEF8FB
surface
#FCEFF6
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #CD42A1

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

Preview Lab → · Contrast checker → · Palette generator →

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