#CD51C1#CD51C1

#CD51C1 is a light, highly saturated purple. Relative luminance 0.227; OKLCH L 63.6% C 0.203 H 331.6°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#CD51C1
RGBrgb(205, 81, 193)
HSLhsl(306, 55%, 56%)
HSVhsv(306, 60%, 80%)
CMYKcmyk(0%, 60.5%, 5.9%, 19.6%)
CIE-LABlab(54.78, 62.43, -35.13)
CIE-LCHlch(54.78, 71.64, 330.63°)
OKLaboklab(63.64% 0.1783 -0.0962)
OKLCHoklch(63.64% 0.203 331.6)
XYZxyz(37.7448, 22.7170, 52.8385)
Luminance0.2271 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD51C1 #51CD5D
analogous
#9B51CD #CD51C1 #CD5183
triadic
#CD51C1 #C1CD51 #51C1CD
tetradic
#CD51C1 #CD9B51 #51CD5D #5183CD
square
#CD51C1 #CD9B51 #51CD5D #5183CD
split-complementary
#CD51C1 #83CD51 #51CD9B
monochromatic
#7F2576 #AF32A3 #CD51C1 #DB81D2 #E8B0E3

Accessibility & contrast

On white

3.79
#CD51C1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#CD51C1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD51C1
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD51C1#FFFFFF#000000##000000
##CD51C11.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B78C4
Deuteranopia (green-blind)
#7489BE
Tritanopia (blue-blind)
#D55C82
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #cd51c1;
/* rgb */ color: rgb(205, 81, 193);
/* oklch */ color: oklch(63.6% 0.203 331.6);
Tailwind
colors: {
  custom: {
    50: '#df89d4',
    500: '#cd51c1',
    950: '#000000',
  },
}
SCSS
$custom: #cd51c1;
$custom-light: #df89d4;
$custom-dark: #000000;
JSON
{
  "hex": "#cd51c1",
  "rgb": {
    "r": 205,
    "g": 81,
    "b": 193
  },
  "hsl": {
    "h": 305.806,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.6364,
    "c": 0.20258,
    "h": 331.6
  },
  "luminance": 0.22714
}

Semantic roles & 50–950 ramp

primary
#CD51C1
secondary
#A3D7A8
accent
#DF5849
background
#FEF8FD
surface
#FCF0FA
border
#D5CBD3
text
#160C14
muted
#847D83

Preview Lab

Preview with #CD51C1

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

Preview Lab → · Contrast checker → · Palette generator →

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