#CD42B1#CD42B1

#CD42B1 is a mid, highly saturated pink. Relative luminance 0.201; OKLCH L 61.3% C 0.211 H 336.9°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#CD42B1
RGBrgb(205, 66, 177)
HSLhsl(312, 58%, 53%)
HSVhsv(312, 68%, 80%)
CMYKcmyk(0%, 67.8%, 13.7%, 19.6%)
CIE-LABlab(51.90, 65.93, -30.36)
CIE-LCHlch(51.90, 72.59, 335.27°)
OKLaboklab(61.3% 0.1938 -0.0825)
OKLCHoklch(61.3% 0.211 336.9)
XYZxyz(35.0614, 20.0530, 43.6105)
Luminance0.2005 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD42B1 #42CD5E
analogous
#A342CD #CD42B1 #CD426B
triadic
#CD42B1 #B1CD42 #42B1CD
tetradic
#CD42B1 #CDA342 #42CD5E #426BCD
square
#CD42B1 #CDA342 #42CD5E #426BCD
split-complementary
#CD42B1 #6BCD42 #42CDA3
monochromatic
#761F64 #A62C8D #CD42B1 #DA72C5 #E7A3D9

Accessibility & contrast

On white

4.19
#CD42B1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#CD42B1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD42B1
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD42B1#FFFFFF#000000##000000
##CD42B11.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#456EB4
Deuteranopia (green-blind)
#7383AE
Tritanopia (blue-blind)
#D84A74
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cd42b1;
/* rgb */ color: rgb(205, 66, 177);
/* oklch */ color: oklch(61.3% 0.211 336.9);
Tailwind
colors: {
  custom: {
    50: '#e081c8',
    500: '#cd42b1',
    950: '#000000',
  },
}
SCSS
$custom: #cd42b1;
$custom-light: #e081c8;
$custom-dark: #000000;
JSON
{
  "hex": "#cd42b1",
  "rgb": {
    "r": 205,
    "g": 66,
    "b": 177
  },
  "hsl": {
    "h": 312.086,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.61302,
    "c": 0.21059,
    "h": 336.9
  },
  "luminance": 0.2005
}

Semantic roles & 50–950 ramp

primary
#CD42B1
secondary
#97D3A4
accent
#E16646
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CD42B1

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

Preview Lab → · Contrast checker → · Palette generator →

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