#CD42C7#CD42C7

#CD42C7 is a light, highly saturated purple. Relative luminance 0.210; OKLCH L 62.4% C 0.227 H 329.7°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#CD42C7
RGBrgb(205, 66, 199)
HSLhsl(303, 58%, 53%)
HSVhsv(303, 68%, 80%)
CMYKcmyk(0%, 67.8%, 2.9%, 19.6%)
CIE-LABlab(52.95, 69.30, -41.46)
CIE-LCHlch(52.95, 80.75, 329.11°)
OKLaboklab(62.41% 0.1957 -0.1143)
OKLCHoklch(62.41% 0.227 329.7)
XYZxyz(37.4336, 21.0018, 56.1039)
Luminance0.2100 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD42C7 #42CD48
analogous
#8D42CD #CD42C7 #CD4281
triadic
#CD42C7 #C7CD42 #42C7CD
tetradic
#CD42C7 #CD8D42 #42CD48 #4281CD
square
#CD42C7 #CD8D42 #42CD48 #4281CD
split-complementary
#CD42C7 #81CD42 #42CD8D
monochromatic
#761F72 #A62CA1 #CD42C7 #DA72D5 #E7A3E4

Accessibility & contrast

On white

4.04
#CD42C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#CD42C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD42C7
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD42C7#FFFFFF#000000##000000
##CD42C71.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3372CB
Deuteranopia (green-blind)
#6985C3
Tritanopia (blue-blind)
#D45380
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #cd42c7;
/* rgb */ color: rgb(205, 66, 199);
/* oklch */ color: oklch(62.4% 0.227 329.7);
Tailwind
colors: {
  custom: {
    50: '#e082d8',
    500: '#cd42c7',
    950: '#000000',
  },
}
SCSS
$custom: #cd42c7;
$custom-light: #e082d8;
$custom-dark: #000000;
JSON
{
  "hex": "#cd42c7",
  "rgb": {
    "r": 205,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 302.59,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.62408,
    "c": 0.22667,
    "h": 329.7
  },
  "luminance": 0.20999
}

Semantic roles & 50–950 ramp

primary
#CD42C7
secondary
#97D39A
accent
#E14D46
background
#FEF8FD
surface
#FCF0FA
border
#D5CBD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CD42C7

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

Preview Lab → · Contrast checker → · Palette generator →

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