#CD51D9#CD51D9

#CD51D9 is a light, highly saturated purple. Relative luminance 0.239; OKLCH L 64.9% C 0.222 H 324.1°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#CD51D9
RGBrgb(205, 81, 217)
HSLhsl(295, 64%, 58%)
HSVhsv(295, 63%, 85%)
CMYKcmyk(5.5%, 62.7%, 0%, 14.9%)
CIE-LABlab(55.96, 66.50, -46.96)
CIE-LCHlch(55.96, 81.41, 324.77°)
OKLaboklab(64.89% 0.1801 -0.1304)
OKLCHoklch(64.89% 0.222 324.1)
XYZxyz(40.6426, 23.8761, 68.1000)
Luminance0.2387 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD51D9 #5DD951
analogous
#8951D9 #CD51D9 #D951A1
triadic
#CD51D9 #D9CD51 #51D9CD
tetradic
#CD51D9 #D98951 #5DD951 #51A1D9
square
#CD51D9 #D98951 #5DD951 #51A1D9
split-complementary
#CD51D9 #A1D951 #51D989
monochromatic
#861F90 #B52AC2 #CD51D9 #DB83E4 #EAB5EF

Accessibility & contrast

On white

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

On black

5.77
#CD51D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD51D9
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD51D9#FFFFFF#000000##000000
##CD51D91.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#367DDD
Deuteranopia (green-blind)
#678BD5
Tritanopia (blue-blind)
#D1658E
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #cd51d9;
/* rgb */ color: rgb(205, 81, 217);
/* oklch */ color: oklch(64.9% 0.222 324.1);
Tailwind
colors: {
  custom: {
    50: '#e08ae5',
    500: '#cd51d9',
    950: '#000000',
  },
}
SCSS
$custom: #cd51d9;
$custom-light: #e08ae5;
$custom-dark: #000000;
JSON
{
  "hex": "#cd51d9",
  "rgb": {
    "r": 205,
    "g": 81,
    "b": 217
  },
  "hsl": {
    "h": 294.706,
    "s": 64.151,
    "l": 58.431
  },
  "oklch": {
    "l": 0.64885,
    "c": 0.22234,
    "h": 324.1
  },
  "luminance": 0.23874
}

Semantic roles & 50–950 ramp

primary
#CD51D9
secondary
#ADDEA8
accent
#E7414F
background
#FEF8FE
surface
#FCF0FC
border
#D5CBD5
text
#160C16
muted
#847D84

Preview Lab

Preview with #CD51D9

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

Preview Lab → · Contrast checker → · Palette generator →

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