#CD51D6#CD51D6

#CD51D6 is a light, highly saturated purple. Relative luminance 0.237; OKLCH L 64.7% C 0.220 H 325.0°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#CD51D6
RGBrgb(205, 81, 214)
HSLhsl(296, 62%, 58%)
HSVhsv(296, 62%, 84%)
CMYKcmyk(4.2%, 62.1%, 0%, 16.1%)
CIE-LABlab(55.81, 65.98, -45.51)
CIE-LCHlch(55.81, 80.15, 325.40°)
OKLaboklab(64.72% 0.18 -0.1262)
OKLCHoklch(64.72% 0.22 325)
XYZxyz(40.2559, 23.7214, 66.0636)
Luminance0.2372 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD51D6 #5AD651
analogous
#8B51D6 #CD51D6 #D6519C
triadic
#CD51D6 #D6CD51 #51D6CD
tetradic
#CD51D6 #D68B51 #5AD651 #519CD6
square
#CD51D6 #D68B51 #5AD651 #519CD6
split-complementary
#CD51D6 #9CD651 #51D68B
monochromatic
#84218C #B32DBD #CD51D6 #DB83E2 #E9B4ED

Accessibility & contrast

On white

3.66
#CD51D6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#CD51D6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD51D6
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD51D6#FFFFFF#000000##000000
##CD51D61.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A7CDA
Deuteranopia (green-blind)
#698BD2
Tritanopia (blue-blind)
#D1648C
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #cd51d6;
/* rgb */ color: rgb(205, 81, 214);
/* oklch */ color: oklch(64.7% 0.220 325.0);
Tailwind
colors: {
  custom: {
    50: '#df8ae3',
    500: '#cd51d6',
    950: '#000000',
  },
}
SCSS
$custom: #cd51d6;
$custom-light: #df8ae3;
$custom-dark: #000000;
JSON
{
  "hex": "#cd51d6",
  "rgb": {
    "r": 205,
    "g": 81,
    "b": 214
  },
  "hsl": {
    "h": 295.94,
    "s": 61.86,
    "l": 57.843
  },
  "oklch": {
    "l": 0.64722,
    "c": 0.21979,
    "h": 325
  },
  "luminance": 0.23719
}

Semantic roles & 50–950 ramp

primary
#CD51D6
secondary
#AADCA7
accent
#E5434E
background
#FEF8FD
surface
#FCF0FB
border
#D5CBD4
text
#160C15
muted
#847D83

Preview Lab

Preview with #CD51D6

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

Preview Lab → · Contrast checker → · Palette generator →

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