#CD42A5#CD42A5

#CD42A5 is a mid, highly saturated pink. Relative luminance 0.196; OKLCH L 60.8% C 0.203 H 341.3°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#CD42A5
RGBrgb(205, 66, 165)
HSLhsl(317, 58%, 53%)
HSVhsv(317, 68%, 80%)
CMYKcmyk(0%, 67.8%, 19.5%, 19.6%)
CIE-LABlab(51.38, 64.23, -24.13)
CIE-LCHlch(51.38, 68.62, 339.41°)
OKLaboklab(60.75% 0.1919 -0.0648)
OKLCHoklch(60.75% 0.203 341.3)
XYZxyz(33.9175, 19.5954, 37.5860)
Luminance0.1959 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD42A5 #42CD6A
analogous
#AF42CD #CD42A5 #CD425F
triadic
#CD42A5 #A5CD42 #42A5CD
tetradic
#CD42A5 #CDAF42 #42CD6A #425FCD
square
#CD42A5 #CDAF42 #42CD6A #425FCD
split-complementary
#CD42A5 #5FCD42 #42CDAF
monochromatic
#761F5D #A62C83 #CD42A5 #DA72BC #E7A3D3

Accessibility & contrast

On white

4.27
#CD42A5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#CD42A5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD42A5
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD42A5#FFFFFF#000000##000000
##CD42A51.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C6CA8
Deuteranopia (green-blind)
#7783A2
Tritanopia (blue-blind)
#D9446E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cd42a5;
/* rgb */ color: rgb(205, 66, 165);
/* oklch */ color: oklch(60.8% 0.203 341.3);
Tailwind
colors: {
  custom: {
    50: '#e081c0',
    500: '#cd42a5',
    950: '#000000',
  },
}
SCSS
$custom: #cd42a5;
$custom-light: #e081c0;
$custom-dark: #000000;
JSON
{
  "hex": "#cd42a5",
  "rgb": {
    "r": 205,
    "g": 66,
    "b": 165
  },
  "hsl": {
    "h": 317.266,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.60753,
    "c": 0.20257,
    "h": 341.3
  },
  "luminance": 0.19592
}

Semantic roles & 50–950 ramp

primary
#CD42A5
secondary
#97D3A9
accent
#E17346
background
#FEF8FB
surface
#FCEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #CD42A5

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

Preview Lab → · Contrast checker → · Palette generator →

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