#CD51C2#CD51C2

#CD51C2 is a light, highly saturated purple. Relative luminance 0.228; OKLCH L 63.7% C 0.203 H 331.3°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#CD51C2
RGBrgb(205, 81, 194)
HSLhsl(305, 55%, 56%)
HSVhsv(305, 60%, 80%)
CMYKcmyk(0%, 60.5%, 5.4%, 19.6%)
CIE-LABlab(54.83, 62.59, -35.63)
CIE-LCHlch(54.83, 72.03, 330.35°)
OKLaboklab(63.69% 0.1784 -0.0977)
OKLCHoklch(63.69% 0.203 331.3)
XYZxyz(37.8567, 22.7617, 53.4280)
Luminance0.2276 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD51C2 #51CD5C
analogous
#9A51CD #CD51C2 #CD5184
triadic
#CD51C2 #C2CD51 #51C2CD
tetradic
#CD51C2 #CD9A51 #51CD5C #5184CD
square
#CD51C2 #CD9A51 #51CD5C #5184CD
split-complementary
#CD51C2 #84CD51 #51CD9A
monochromatic
#7F2577 #AF32A4 #CD51C2 #DB81D3 #E8B0E3

Accessibility & contrast

On white

3.78
#CD51C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#CD51C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD51C2
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD51C2#FFFFFF#000000##000000
##CD51C21.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A78C5
Deuteranopia (green-blind)
#7389BF
Tritanopia (blue-blind)
#D55D82
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #cd51c2;
/* rgb */ color: rgb(205, 81, 194);
/* oklch */ color: oklch(63.7% 0.203 331.3);
Tailwind
colors: {
  custom: {
    50: '#df89d5',
    500: '#cd51c2',
    950: '#000000',
  },
}
SCSS
$custom: #cd51c2;
$custom-light: #df89d5;
$custom-dark: #000000;
JSON
{
  "hex": "#cd51c2",
  "rgb": {
    "r": 205,
    "g": 81,
    "b": 194
  },
  "hsl": {
    "h": 305.323,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.63689,
    "c": 0.20337,
    "h": 331.3
  },
  "luminance": 0.22759
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD51C2

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

Preview Lab → · Contrast checker → · Palette generator →

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