#CD42B4#CD42B4

#CD42B4 is a mid, highly saturated pink. Relative luminance 0.202; OKLCH L 61.4% C 0.213 H 335.9°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#CD42B4
RGBrgb(205, 66, 180)
HSLhsl(311, 58%, 53%)
HSVhsv(311, 68%, 80%)
CMYKcmyk(0%, 67.8%, 12.2%, 19.6%)
CIE-LABlab(52.03, 66.37, -31.90)
CIE-LCHlch(52.03, 73.64, 334.33°)
OKLaboklab(61.45% 0.1942 -0.0869)
OKLCHoklch(61.45% 0.213 335.9)
XYZxyz(35.3637, 20.1739, 45.2026)
Luminance0.2017 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD42B4 #42CD5B
analogous
#A042CD #CD42B4 #CD426F
triadic
#CD42B4 #B4CD42 #42B4CD
tetradic
#CD42B4 #CDA042 #42CD5B #426FCD
square
#CD42B4 #CDA042 #42CD5B #426FCD
split-complementary
#CD42B4 #6FCD42 #42CDA0
monochromatic
#761F66 #A62C90 #CD42B4 #DA72C7 #E7A3DA

Accessibility & contrast

On white

4.17
#CD42B4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#CD42B4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD42B4
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD42B4#FFFFFF#000000##000000
##CD42B41.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#436FB7
Deuteranopia (green-blind)
#7284B1
Tritanopia (blue-blind)
#D74B75
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cd42b4;
/* rgb */ color: rgb(205, 66, 180);
/* oklch */ color: oklch(61.4% 0.213 335.9);
Tailwind
colors: {
  custom: {
    50: '#e081cb',
    500: '#cd42b4',
    950: '#000000',
  },
}
SCSS
$custom: #cd42b4;
$custom-light: #e081cb;
$custom-dark: #000000;
JSON
{
  "hex": "#cd42b4",
  "rgb": {
    "r": 205,
    "g": 66,
    "b": 180
  },
  "hsl": {
    "h": 310.791,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.61446,
    "c": 0.21269,
    "h": 335.9
  },
  "luminance": 0.20171
}

Semantic roles & 50–950 ramp

primary
#CD42B4
secondary
#97D3A2
accent
#E16246
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CD42B4

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

Preview Lab → · Contrast checker → · Palette generator →

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