#CD51C8#CD51C8

#CD51C8 is a light, highly saturated purple. Relative luminance 0.230; OKLCH L 64.0% C 0.208 H 329.3°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#CD51C8
RGBrgb(205, 81, 200)
HSLhsl(302, 55%, 56%)
HSVhsv(302, 60%, 80%)
CMYKcmyk(0%, 60.5%, 2.4%, 19.6%)
CIE-LABlab(55.11, 63.58, -38.63)
CIE-LCHlch(55.11, 74.40, 328.72°)
OKLaboklab(63.99% 0.179 -0.1063)
OKLCHoklch(63.99% 0.208 329.3)
XYZxyz(38.5442, 23.0367, 57.0488)
Luminance0.2303 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD51C8 #51CD56
analogous
#9451CD #CD51C8 #CD518A
triadic
#CD51C8 #C8CD51 #51C8CD
tetradic
#CD51C8 #CD9451 #51CD56 #518ACD
square
#CD51C8 #CD9451 #51CD56 #518ACD
split-complementary
#CD51C8 #8ACD51 #51CD94
monochromatic
#7F257B #AF32AA #CD51C8 #DB81D7 #E8B0E6

Accessibility & contrast

On white

3.75
#CD51C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#CD51C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD51C8
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD51C8#FFFFFF#000000##000000
##CD51C81.003.755.615.61
#FFFFFF3.751.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4679CC
Deuteranopia (green-blind)
#708AC5
Tritanopia (blue-blind)
#D45F85
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #cd51c8;
/* rgb */ color: rgb(205, 81, 200);
/* oklch */ color: oklch(64.0% 0.208 329.3);
Tailwind
colors: {
  custom: {
    50: '#df89d9',
    500: '#cd51c8',
    950: '#000000',
  },
}
SCSS
$custom: #cd51c8;
$custom-light: #df89d9;
$custom-dark: #000000;
JSON
{
  "hex": "#cd51c8",
  "rgb": {
    "r": 205,
    "g": 81,
    "b": 200
  },
  "hsl": {
    "h": 302.419,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.63988,
    "c": 0.20818,
    "h": 329.3
  },
  "luminance": 0.23034
}

Semantic roles & 50–950 ramp

primary
#CD51C8
secondary
#A3D7A5
accent
#DF4F49
background
#FEF8FD
surface
#FCF0FA
border
#D5CBD3
text
#160C14
muted
#847D83

Preview Lab

Preview with #CD51C8

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

Preview Lab → · Contrast checker → · Palette generator →

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