#CD51D3#CD51D3

#CD51D3 is a light, highly saturated purple. Relative luminance 0.236; OKLCH L 64.6% C 0.217 H 325.9°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#CD51D3
RGBrgb(205, 81, 211)
HSLhsl(297, 60%, 57%)
HSVhsv(297, 62%, 83%)
CMYKcmyk(2.8%, 61.6%, 0%, 17.3%)
CIE-LABlab(55.65, 65.45, -44.05)
CIE-LCHlch(55.65, 78.89, 326.06°)
OKLaboklab(64.56% 0.1798 -0.1219)
OKLCHoklch(64.56% 0.217 325.9)
XYZxyz(39.8763, 23.5696, 64.0644)
Luminance0.2357 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD51D3 #57D351
analogous
#8C51D3 #CD51D3 #D35198
triadic
#CD51D3 #D3CD51 #51D3CD
tetradic
#CD51D3 #D38C51 #57D351 #5198D3
square
#CD51D3 #D38C51 #57D351 #5198D3
split-complementary
#CD51D3 #98D351 #51D38C
monochromatic
#832287 #B22FB8 #CD51D3 #DB82DF #E9B3EC

Accessibility & contrast

On white

3.68
#CD51D3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.71
#CD51D3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD51D3
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD51D3#FFFFFF#000000##000000
##CD51D31.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D7BD7
Deuteranopia (green-blind)
#6B8BD0
Tritanopia (blue-blind)
#D2638B
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #cd51d3;
/* rgb */ color: rgb(205, 81, 211);
/* oklch */ color: oklch(64.6% 0.217 325.9);
Tailwind
colors: {
  custom: {
    50: '#df8ae1',
    500: '#cd51d3',
    950: '#000000',
  },
}
SCSS
$custom: #cd51d3;
$custom-light: #df8ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#cd51d3",
  "rgb": {
    "r": 205,
    "g": 81,
    "b": 211
  },
  "hsl": {
    "h": 297.231,
    "s": 59.633,
    "l": 57.255
  },
  "oklch": {
    "l": 0.6456,
    "c": 0.21726,
    "h": 325.9
  },
  "luminance": 0.23567
}

Semantic roles & 50–950 ramp

primary
#CD51D3
secondary
#A8DAA6
accent
#E3454C
background
#FEF8FD
surface
#FCF0FB
border
#D5CBD4
text
#160C15
muted
#847D83

Preview Lab

Preview with #CD51D3

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

Preview Lab → · Contrast checker → · Palette generator →

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