#CD42B3#CD42B3

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

Color values

HEX#CD42B3
RGBrgb(205, 66, 179)
HSLhsl(311, 58%, 53%)
HSVhsv(311, 68%, 80%)
CMYKcmyk(0%, 67.8%, 12.7%, 19.6%)
CIE-LABlab(51.99, 66.22, -31.39)
CIE-LCHlch(51.99, 73.29, 334.64°)
OKLaboklab(61.4% 0.194 -0.0854)
OKLCHoklch(61.4% 0.212 336.2)
XYZxyz(35.2622, 20.1333, 44.6680)
Luminance0.2013 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD42B3 #42CD5C
analogous
#A142CD #CD42B3 #CD426D
triadic
#CD42B3 #B3CD42 #42B3CD
tetradic
#CD42B3 #CDA142 #42CD5C #426DCD
square
#CD42B3 #CDA142 #42CD5C #426DCD
split-complementary
#CD42B3 #6DCD42 #42CDA1
monochromatic
#761F65 #A62C8F #CD42B3 #DA72C6 #E7A3DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CD42B3#FFFFFF#000000##000000
##CD42B31.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#446FB6
Deuteranopia (green-blind)
#7284B0
Tritanopia (blue-blind)
#D74A75
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cd42b3;
/* rgb */ color: rgb(205, 66, 179);
/* oklch */ color: oklch(61.4% 0.212 336.2);
Tailwind
colors: {
  custom: {
    50: '#e081ca',
    500: '#cd42b3',
    950: '#000000',
  },
}
SCSS
$custom: #cd42b3;
$custom-light: #e081ca;
$custom-dark: #000000;
JSON
{
  "hex": "#cd42b3",
  "rgb": {
    "r": 205,
    "g": 66,
    "b": 179
  },
  "hsl": {
    "h": 311.223,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.61398,
    "c": 0.21199,
    "h": 336.2
  },
  "luminance": 0.2013
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD42B3

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

Preview Lab → · Contrast checker → · Palette generator →

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