#CD42B8#CD42B8

#CD42B8 is a mid, highly saturated purple. Relative luminance 0.203; OKLCH L 61.6% C 0.216 H 334.5°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#CD42B8
RGBrgb(205, 66, 184)
HSLhsl(309, 58%, 53%)
HSVhsv(309, 68%, 80%)
CMYKcmyk(0%, 67.8%, 10.2%, 19.6%)
CIE-LABlab(52.22, 66.97, -33.94)
CIE-LCHlch(52.22, 75.08, 333.13°)
OKLaboklab(61.64% 0.1946 -0.0927)
OKLCHoklch(61.64% 0.216 334.5)
XYZxyz(35.7771, 20.3392, 47.3797)
Luminance0.2034 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD42B8 #42CD57
analogous
#9D42CD #CD42B8 #CD4272
triadic
#CD42B8 #B8CD42 #42B8CD
tetradic
#CD42B8 #CD9D42 #42CD57 #4272CD
square
#CD42B8 #CD9D42 #42CD57 #4272CD
split-complementary
#CD42B8 #72CD42 #42CD9D
monochromatic
#761F68 #A62C93 #CD42B8 #DA72CA #E7A3DC

Accessibility & contrast

On white

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

On black

5.07
#CD42B8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD42B8
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD42B8#FFFFFF#000000##000000
##CD42B81.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#416FBB
Deuteranopia (green-blind)
#7084B5
Tritanopia (blue-blind)
#D74D78
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cd42b8;
/* rgb */ color: rgb(205, 66, 184);
/* oklch */ color: oklch(61.6% 0.216 334.5);
Tailwind
colors: {
  custom: {
    50: '#e081cd',
    500: '#cd42b8',
    950: '#000000',
  },
}
SCSS
$custom: #cd42b8;
$custom-light: #e081cd;
$custom-dark: #000000;
JSON
{
  "hex": "#cd42b8",
  "rgb": {
    "r": 205,
    "g": 66,
    "b": 184
  },
  "hsl": {
    "h": 309.065,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.6164,
    "c": 0.21555,
    "h": 334.5
  },
  "luminance": 0.20336
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD42B8

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

Preview Lab → · Contrast checker → · Palette generator →

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