#CD51D7#CD51D7

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

Color values

HEX#CD51D7
RGBrgb(205, 81, 215)
HSLhsl(296, 63%, 58%)
HSVhsv(296, 62%, 84%)
CMYKcmyk(4.7%, 62.3%, 0%, 15.7%)
CIE-LABlab(55.86, 66.15, -45.99)
CIE-LCHlch(55.86, 80.57, 325.19°)
OKLaboklab(64.78% 0.18 -0.1276)
OKLCHoklch(64.78% 0.221 324.7)
XYZxyz(40.3840, 23.7727, 66.7383)
Luminance0.2377 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD51D7 #5BD751
analogous
#8A51D7 #CD51D7 #D7519E
triadic
#CD51D7 #D7CD51 #51D7CD
tetradic
#CD51D7 #D78A51 #5BD751 #519ED7
square
#CD51D7 #D78A51 #5BD751 #519ED7
split-complementary
#CD51D7 #9ED751 #51D78A
monochromatic
#85208D #B42CBF #CD51D7 #DB83E2 #EAB5EE

Accessibility & contrast

On white

3.65
#CD51D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#CD51D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD51D7
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD51D7#FFFFFF#000000##000000
##CD51D71.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#397CDB
Deuteranopia (green-blind)
#698BD3
Tritanopia (blue-blind)
#D1658D
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #cd51d7;
/* rgb */ color: rgb(205, 81, 215);
/* oklch */ color: oklch(64.8% 0.221 324.7);
Tailwind
colors: {
  custom: {
    50: '#e08ae4',
    500: '#cd51d7',
    950: '#000000',
  },
}
SCSS
$custom: #cd51d7;
$custom-light: #e08ae4;
$custom-dark: #000000;
JSON
{
  "hex": "#cd51d7",
  "rgb": {
    "r": 205,
    "g": 81,
    "b": 215
  },
  "hsl": {
    "h": 295.522,
    "s": 62.617,
    "l": 58.039
  },
  "oklch": {
    "l": 0.64776,
    "c": 0.22064,
    "h": 324.7
  },
  "luminance": 0.2377
}

Semantic roles & 50–950 ramp

primary
#CD51D7
secondary
#ABDDA7
accent
#E6424E
background
#FEF8FE
surface
#FCF0FC
border
#D5CBD5
text
#160C15
muted
#847D84

Preview Lab

Preview with #CD51D7

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

Preview Lab → · Contrast checker → · Palette generator →

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