#CD51C4#CD51C4

#CD51C4 is a light, highly saturated purple. Relative luminance 0.229; OKLCH L 63.8% C 0.205 H 330.6°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#CD51C4
RGBrgb(205, 81, 196)
HSLhsl(304, 55%, 56%)
HSVhsv(304, 60%, 80%)
CMYKcmyk(0%, 60.5%, 4.4%, 19.6%)
CIE-LABlab(54.92, 62.92, -36.64)
CIE-LCHlch(54.92, 72.81, 329.79°)
OKLaboklab(63.79% 0.1786 -0.1005)
OKLCHoklch(63.79% 0.205 330.6)
XYZxyz(38.0829, 22.8522, 54.6189)
Luminance0.2285 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD51C4 #51CD5A
analogous
#9851CD #CD51C4 #CD5186
triadic
#CD51C4 #C4CD51 #51C4CD
tetradic
#CD51C4 #CD9851 #51CD5A #5186CD
square
#CD51C4 #CD9851 #51CD5A #5186CD
split-complementary
#CD51C4 #86CD51 #51CD98
monochromatic
#7F2579 #AF32A6 #CD51C4 #DB81D4 #E8B0E4

Accessibility & contrast

On white

3.77
#CD51C4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#CD51C4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD51C4
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD51C4#FFFFFF#000000##000000
##CD51C41.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4978C8
Deuteranopia (green-blind)
#728AC1
Tritanopia (blue-blind)
#D45D83
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #cd51c4;
/* rgb */ color: rgb(205, 81, 196);
/* oklch */ color: oklch(63.8% 0.205 330.6);
Tailwind
colors: {
  custom: {
    50: '#df89d6',
    500: '#cd51c4',
    950: '#000000',
  },
}
SCSS
$custom: #cd51c4;
$custom-light: #df89d6;
$custom-dark: #000000;
JSON
{
  "hex": "#cd51c4",
  "rgb": {
    "r": 205,
    "g": 81,
    "b": 196
  },
  "hsl": {
    "h": 304.355,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.63788,
    "c": 0.20496,
    "h": 330.6
  },
  "luminance": 0.2285
}

Semantic roles & 50–950 ramp

primary
#CD51C4
secondary
#A3D7A7
accent
#DF5449
background
#FEF8FD
surface
#FCF0FA
border
#D5CBD3
text
#160C14
muted
#847D83

Preview Lab

Preview with #CD51C4

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

Preview Lab → · Contrast checker → · Palette generator →

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