#CD51D4#CD51D4

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

Color values

HEX#CD51D4
RGBrgb(205, 81, 212)
HSLhsl(297, 60%, 57%)
HSVhsv(297, 62%, 83%)
CMYKcmyk(3.3%, 61.8%, 0%, 16.9%)
CIE-LABlab(55.71, 65.63, -44.54)
CIE-LCHlch(55.71, 79.31, 325.84°)
OKLaboklab(64.61% 0.1799 -0.1234)
OKLCHoklch(64.61% 0.218 325.6)
XYZxyz(40.0021, 23.6199, 64.7267)
Luminance0.2362 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD51D4 #58D451
analogous
#8C51D4 #CD51D4 #D45199
triadic
#CD51D4 #D4CD51 #51D4CD
tetradic
#CD51D4 #D48C51 #58D451 #5199D4
square
#CD51D4 #D48C51 #58D451 #5199D4
split-complementary
#CD51D4 #99D451 #51D48C
monochromatic
#832289 #B22EBA #CD51D4 #DB82E0 #E9B3EC

Accessibility & contrast

On white

3.67
#CD51D4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.72
#CD51D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD51D4
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD51D4#FFFFFF#000000##000000
##CD51D41.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cd51d4;
/* rgb */ color: rgb(205, 81, 212);
/* oklch */ color: oklch(64.6% 0.218 325.6);
Tailwind
colors: {
  custom: {
    50: '#df8ae2',
    500: '#cd51d4',
    950: '#000000',
  },
}
SCSS
$custom: #cd51d4;
$custom-light: #df8ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#cd51d4",
  "rgb": {
    "r": 205,
    "g": 81,
    "b": 212
  },
  "hsl": {
    "h": 296.794,
    "s": 60.369,
    "l": 57.451
  },
  "oklch": {
    "l": 0.64614,
    "c": 0.21811,
    "h": 325.6
  },
  "luminance": 0.23617
}

Semantic roles & 50–950 ramp

primary
#CD51D4
secondary
#A9DBA6
accent
#E4444D
background
#FEF8FD
surface
#FCF0FB
border
#D5CBD4
text
#160C15
muted
#847D83

Preview Lab

Preview with #CD51D4

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

Preview Lab → · Contrast checker → · Palette generator →

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