#CD51E4#CD51E4

#CD51E4 is a light, highly saturated purple. Relative luminance 0.245; OKLCH L 65.5% C 0.232 H 321.0°. Best body text is #000000 at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#CD51E4
RGBrgb(205, 81, 228)
HSLhsl(291, 73%, 61%)
HSVhsv(291, 64%, 89%)
CMYKcmyk(10.1%, 64.5%, 0%, 10.6%)
CIE-LABlab(56.55, 68.48, -52.23)
CIE-LCHlch(56.55, 86.12, 322.66°)
OKLaboklab(65.5% 0.1803 -0.1457)
OKLCHoklch(65.5% 0.232 321)
XYZxyz(42.1213, 24.4675, 75.8878)
Luminance0.2447 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD51E4 #68E451
analogous
#8351E4 #CD51E4 #E451B2
triadic
#CD51E4 #E4CD51 #51E4CD
tetradic
#CD51E4 #E48351 #68E451 #51B2E4
square
#CD51E4 #E48351 #68E451 #51B2E4
split-complementary
#CD51E4 #B2E451 #51E483
monochromatic
#8C19A2 #BA21D7 #CD51E4 #DC86EC #EBBBF4

Accessibility & contrast

On white

3.56
#CD51E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.89
#CD51E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD51E4
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD51E4#FFFFFF#000000##000000
##CD51E41.003.565.895.89
#FFFFFF3.561.0021.0021.00
#0000005.8921.001.001.00
##0000005.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#277FE8
Deuteranopia (green-blind)
#608CE0
Tritanopia (blue-blind)
#CF6A94
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #cd51e4;
/* rgb */ color: rgb(205, 81, 228);
/* oklch */ color: oklch(65.5% 0.232 321.0);
Tailwind
colors: {
  custom: {
    50: '#e08aed',
    500: '#cd51e4',
    950: '#000000',
  },
}
SCSS
$custom: #cd51e4;
$custom-light: #e08aed;
$custom-dark: #000000;
JSON
{
  "hex": "#cd51e4",
  "rgb": {
    "r": 205,
    "g": 81,
    "b": 228
  },
  "hsl": {
    "h": 290.612,
    "s": 73.134,
    "l": 60.588
  },
  "oklch": {
    "l": 0.65501,
    "c": 0.23181,
    "h": 321
  },
  "luminance": 0.24465
}

Semantic roles & 50–950 ramp

primary
#CD51E4
secondary
#B5E4AC
accent
#D5102F
background
#FEF8FE
surface
#FCF0FD
border
#D5CBD5
text
#160C16
muted
#847D84

Preview Lab

Preview with #CD51E4

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

Preview Lab → · Contrast checker → · Palette generator →

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