#CD42B6#CD42B6

#CD42B6 is a mid, highly saturated purple. Relative luminance 0.203; OKLCH L 61.5% C 0.214 H 335.2°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#CD42B6
RGBrgb(205, 66, 182)
HSLhsl(310, 58%, 53%)
HSVhsv(310, 68%, 80%)
CMYKcmyk(0%, 67.8%, 11.2%, 19.6%)
CIE-LABlab(52.13, 66.67, -32.92)
CIE-LCHlch(52.13, 74.35, 333.72°)
OKLaboklab(61.54% 0.1944 -0.0898)
OKLCHoklch(61.54% 0.214 335.2)
XYZxyz(35.5689, 20.2560, 46.2834)
Luminance0.2025 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD42B6 #42CD59
analogous
#9E42CD #CD42B6 #CD4270
triadic
#CD42B6 #B6CD42 #42B6CD
tetradic
#CD42B6 #CD9E42 #42CD59 #4270CD
square
#CD42B6 #CD9E42 #42CD59 #4270CD
split-complementary
#CD42B6 #70CD42 #42CD9E
monochromatic
#761F67 #A62C92 #CD42B6 #DA72C9 #E7A3DB

Accessibility & contrast

On white

4.16
#CD42B6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#CD42B6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD42B6
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD42B6#FFFFFF#000000##000000
##CD42B61.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#426FB9
Deuteranopia (green-blind)
#7184B3
Tritanopia (blue-blind)
#D74C76
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cd42b6;
/* rgb */ color: rgb(205, 66, 182);
/* oklch */ color: oklch(61.5% 0.214 335.2);
Tailwind
colors: {
  custom: {
    50: '#e081cc',
    500: '#cd42b6',
    950: '#000000',
  },
}
SCSS
$custom: #cd42b6;
$custom-light: #e081cc;
$custom-dark: #000000;
JSON
{
  "hex": "#cd42b6",
  "rgb": {
    "r": 205,
    "g": 66,
    "b": 182
  },
  "hsl": {
    "h": 309.928,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.61542,
    "c": 0.21411,
    "h": 335.2
  },
  "luminance": 0.20253
}

Semantic roles & 50–950 ramp

primary
#CD42B6
secondary
#97D3A1
accent
#E16046
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #CD42B6

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

Preview Lab → · Contrast checker → · Palette generator →

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