#CD42B7#CD42B7

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

Color values

HEX#CD42B7
RGBrgb(205, 66, 183)
HSLhsl(309, 58%, 53%)
HSVhsv(309, 68%, 80%)
CMYKcmyk(0%, 67.8%, 10.7%, 19.6%)
CIE-LABlab(52.17, 66.82, -33.43)
CIE-LCHlch(52.17, 74.71, 333.42°)
OKLaboklab(61.59% 0.1945 -0.0912)
OKLCHoklch(61.59% 0.215 334.9)
XYZxyz(35.6726, 20.2975, 46.8296)
Luminance0.2029 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD42B7 #42CD58
analogous
#9D42CD #CD42B7 #CD4272
triadic
#CD42B7 #B7CD42 #42B7CD
tetradic
#CD42B7 #CD9D42 #42CD58 #4272CD
square
#CD42B7 #CD9D42 #42CD58 #4272CD
split-complementary
#CD42B7 #72CD42 #42CD9D
monochromatic
#761F68 #A62C93 #CD42B7 #DA72C9 #E7A3DC

Accessibility & contrast

On white

4.15
#CD42B7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#CD42B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD42B7
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD42B7#FFFFFF#000000##000000
##CD42B71.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#416FBA
Deuteranopia (green-blind)
#7084B4
Tritanopia (blue-blind)
#D74C77
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cd42b7;
/* rgb */ color: rgb(205, 66, 183);
/* oklch */ color: oklch(61.6% 0.215 334.9);
Tailwind
colors: {
  custom: {
    50: '#e081cd',
    500: '#cd42b7',
    950: '#000000',
  },
}
SCSS
$custom: #cd42b7;
$custom-light: #e081cd;
$custom-dark: #000000;
JSON
{
  "hex": "#cd42b7",
  "rgb": {
    "r": 205,
    "g": 66,
    "b": 183
  },
  "hsl": {
    "h": 309.496,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.61591,
    "c": 0.21482,
    "h": 334.9
  },
  "luminance": 0.20294
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD42B7

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

Preview Lab → · Contrast checker → · Palette generator →

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