#CD42B2#CD42B2

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

Color values

HEX#CD42B2
RGBrgb(205, 66, 178)
HSLhsl(312, 58%, 53%)
HSVhsv(312, 68%, 80%)
CMYKcmyk(0%, 67.8%, 13.2%, 19.6%)
CIE-LABlab(51.94, 66.08, -30.88)
CIE-LCHlch(51.94, 72.94, 334.96°)
OKLaboklab(61.35% 0.1939 -0.0839)
OKLCHoklch(61.35% 0.211 336.6)
XYZxyz(35.1615, 20.0930, 44.1373)
Luminance0.2009 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD42B2 #42CD5D
analogous
#A342CD #CD42B2 #CD426C
triadic
#CD42B2 #B2CD42 #42B2CD
tetradic
#CD42B2 #CDA342 #42CD5D #426CCD
square
#CD42B2 #CDA342 #42CD5D #426CCD
split-complementary
#CD42B2 #6CCD42 #42CDA3
monochromatic
#761F65 #A62C8E #CD42B2 #DA72C6 #E7A3D9

Accessibility & contrast

On white

4.18
#CD42B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#CD42B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD42B2
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD42B2#FFFFFF#000000##000000
##CD42B21.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#456EB5
Deuteranopia (green-blind)
#7283AF
Tritanopia (blue-blind)
#D74A74
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cd42b2;
/* rgb */ color: rgb(205, 66, 178);
/* oklch */ color: oklch(61.4% 0.211 336.6);
Tailwind
colors: {
  custom: {
    50: '#e081c9',
    500: '#cd42b2',
    950: '#000000',
  },
}
SCSS
$custom: #cd42b2;
$custom-light: #e081c9;
$custom-dark: #000000;
JSON
{
  "hex": "#cd42b2",
  "rgb": {
    "r": 205,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 311.655,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.6135,
    "c": 0.21129,
    "h": 336.6
  },
  "luminance": 0.2009
}

Semantic roles & 50–950 ramp

primary
#CD42B2
secondary
#97D3A3
accent
#E16546
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CD42B2

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

Preview Lab → · Contrast checker → · Palette generator →

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