#CD51D8#CD51D8

#CD51D8 is a light, highly saturated purple. Relative luminance 0.238; OKLCH L 64.8% C 0.221 H 324.4°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#CD51D8
RGBrgb(205, 81, 216)
HSLhsl(295, 63%, 58%)
HSVhsv(295, 63%, 85%)
CMYKcmyk(5.1%, 62.5%, 0%, 15.3%)
CIE-LABlab(55.91, 66.33, -46.48)
CIE-LCHlch(55.91, 80.99, 324.98°)
OKLaboklab(64.83% 0.18 -0.129)
OKLCHoklch(64.83% 0.221 324.4)
XYZxyz(40.5129, 23.8242, 67.4171)
Luminance0.2382 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD51D8 #5CD851
analogous
#8951D8 #CD51D8 #D8519F
triadic
#CD51D8 #D8CD51 #51D8CD
tetradic
#CD51D8 #D88951 #5CD851 #519FD8
square
#CD51D8 #D88951 #5CD851 #519FD8
split-complementary
#CD51D8 #9FD851 #51D889
monochromatic
#86208F #B42BC1 #CD51D8 #DB83E3 #EAB5EE

Accessibility & contrast

On white

3.64
#CD51D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#CD51D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD51D8
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD51D8#FFFFFF#000000##000000
##CD51D81.003.645.765.76
#FFFFFF3.641.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#387CDC
Deuteranopia (green-blind)
#688BD4
Tritanopia (blue-blind)
#D1658E
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #cd51d8;
/* rgb */ color: rgb(205, 81, 216);
/* oklch */ color: oklch(64.8% 0.221 324.4);
Tailwind
colors: {
  custom: {
    50: '#e08ae4',
    500: '#cd51d8',
    950: '#000000',
  },
}
SCSS
$custom: #cd51d8;
$custom-light: #e08ae4;
$custom-dark: #000000;
JSON
{
  "hex": "#cd51d8",
  "rgb": {
    "r": 205,
    "g": 81,
    "b": 216
  },
  "hsl": {
    "h": 295.111,
    "s": 63.38,
    "l": 58.235
  },
  "oklch": {
    "l": 0.6483,
    "c": 0.22149,
    "h": 324.4
  },
  "luminance": 0.23822
}

Semantic roles & 50–950 ramp

primary
#CD51D8
secondary
#ACDDA8
accent
#E6414F
background
#FEF8FE
surface
#FCF0FC
border
#D5CBD5
text
#160C16
muted
#847D84

Preview Lab

Preview with #CD51D8

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

Preview Lab → · Contrast checker → · Palette generator →

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