#CD42B9#CD42B9

#CD42B9 is a mid, highly saturated purple. Relative luminance 0.204; OKLCH L 61.7% C 0.216 H 334.2°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#CD42B9
RGBrgb(205, 66, 185)
HSLhsl(309, 58%, 53%)
HSVhsv(309, 68%, 80%)
CMYKcmyk(0%, 67.8%, 9.8%, 19.6%)
CIE-LABlab(52.27, 67.12, -34.45)
CIE-LCHlch(52.27, 75.44, 332.83°)
OKLaboklab(61.69% 0.1947 -0.0941)
OKLCHoklch(61.69% 0.216 334.2)
XYZxyz(35.8823, 20.3813, 47.9337)
Luminance0.2038 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD42B9 #42CD56
analogous
#9B42CD #CD42B9 #CD4273
triadic
#CD42B9 #B9CD42 #42B9CD
tetradic
#CD42B9 #CD9B42 #42CD56 #4273CD
square
#CD42B9 #CD9B42 #42CD56 #4273CD
split-complementary
#CD42B9 #73CD42 #42CD9B
monochromatic
#761F69 #A62C94 #CD42B9 #DA72CB #E7A3DD

Accessibility & contrast

On white

4.14
#CD42B9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#CD42B9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD42B9
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD42B9#FFFFFF#000000##000000
##CD42B91.004.145.085.08
#FFFFFF4.141.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4070BC
Deuteranopia (green-blind)
#7084B6
Tritanopia (blue-blind)
#D64D78
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cd42b9;
/* rgb */ color: rgb(205, 66, 185);
/* oklch */ color: oklch(61.7% 0.216 334.2);
Tailwind
colors: {
  custom: {
    50: '#e081ce',
    500: '#cd42b9',
    950: '#000000',
  },
}
SCSS
$custom: #cd42b9;
$custom-light: #e081ce;
$custom-dark: #000000;
JSON
{
  "hex": "#cd42b9",
  "rgb": {
    "r": 205,
    "g": 66,
    "b": 185
  },
  "hsl": {
    "h": 308.633,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.6169,
    "c": 0.21626,
    "h": 334.2
  },
  "luminance": 0.20378
}

Semantic roles & 50–950 ramp

primary
#CD42B9
secondary
#97D3A0
accent
#E15D46
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #CD42B9

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

Preview Lab → · Contrast checker → · Palette generator →

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