#CD42BC#CD42BC

#CD42BC is a mid, highly saturated purple. Relative luminance 0.205; OKLCH L 61.8% C 0.218 H 333.2°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#CD42BC
RGBrgb(205, 66, 188)
HSLhsl(307, 58%, 53%)
HSVhsv(307, 68%, 80%)
CMYKcmyk(0%, 67.8%, 8.3%, 19.6%)
CIE-LABlab(52.41, 67.58, -35.96)
CIE-LCHlch(52.41, 76.55, 331.98°)
OKLaboklab(61.84% 0.195 -0.0985)
OKLCHoklch(61.84% 0.218 333.2)
XYZxyz(36.2023, 20.5093, 49.6192)
Luminance0.2051 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD42BC #42CD53
analogous
#9842CD #CD42BC #CD4276
triadic
#CD42BC #BCCD42 #42BCCD
tetradic
#CD42BC #CD9842 #42CD53 #4276CD
square
#CD42BC #CD9842 #42CD53 #4276CD
split-complementary
#CD42BC #76CD42 #42CD98
monochromatic
#761F6B #A62C97 #CD42BC #DA72CD #E7A3DE

Accessibility & contrast

On white

4.12
#CD42BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#CD42BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD42BC
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD42BC#FFFFFF#000000##000000
##CD42BC1.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D70BF
Deuteranopia (green-blind)
#6E84B9
Tritanopia (blue-blind)
#D64E7A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cd42bc;
/* rgb */ color: rgb(205, 66, 188);
/* oklch */ color: oklch(61.8% 0.218 333.2);
Tailwind
colors: {
  custom: {
    50: '#e081d0',
    500: '#cd42bc',
    950: '#000000',
  },
}
SCSS
$custom: #cd42bc;
$custom-light: #e081d0;
$custom-dark: #000000;
JSON
{
  "hex": "#cd42bc",
  "rgb": {
    "r": 205,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 307.338,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.61839,
    "c": 0.21844,
    "h": 333.2
  },
  "luminance": 0.20506
}

Semantic roles & 50–950 ramp

primary
#CD42BC
secondary
#97D39F
accent
#E15946
background
#FEF8FC
surface
#FCF0F9
border
#D5CBD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #CD42BC

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

Preview Lab → · Contrast checker → · Palette generator →

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