#CD51E6#CD51E6

#CD51E6 is a light, highly saturated purple. Relative luminance 0.246; OKLCH L 65.6% C 0.234 H 320.5°. Best body text is #000000 at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#CD51E6
RGBrgb(205, 81, 230)
HSLhsl(290, 75%, 61%)
HSVhsv(290, 65%, 90%)
CMYKcmyk(10.9%, 64.8%, 0%, 9.8%)
CIE-LABlab(56.66, 68.84, -53.18)
CIE-LCHlch(56.66, 86.99, 322.31°)
OKLaboklab(65.62% 0.1803 -0.1485)
OKLCHoklch(65.62% 0.234 320.5)
XYZxyz(42.4005, 24.5792, 77.3584)
Luminance0.2458 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD51E6 #6AE651
analogous
#8251E6 #CD51E6 #E651B4
triadic
#CD51E6 #E6CD51 #51E6CD
tetradic
#CD51E6 #E68251 #6AE651 #51B4E6
square
#CD51E6 #E68251 #6AE651 #51B4E6
split-complementary
#CD51E6 #B4E651 #51E682
monochromatic
#8D18A5 #BB1FDA #CD51E6 #DC87EE #ECBCF5

Accessibility & contrast

On white

3.55
#CD51E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.92
#CD51E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD51E6
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD51E6#FFFFFF#000000##000000
##CD51E61.003.555.925.92
#FFFFFF3.551.0021.0021.00
#0000005.9221.001.001.00
##0000005.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#247FEA
Deuteranopia (green-blind)
#5F8CE2
Tritanopia (blue-blind)
#CE6A95
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #cd51e6;
/* rgb */ color: rgb(205, 81, 230);
/* oklch */ color: oklch(65.6% 0.234 320.5);
Tailwind
colors: {
  custom: {
    50: '#e08aee',
    500: '#cd51e6',
    950: '#000000',
  },
}
SCSS
$custom: #cd51e6;
$custom-light: #e08aee;
$custom-dark: #000000;
JSON
{
  "hex": "#cd51e6",
  "rgb": {
    "r": 205,
    "g": 81,
    "b": 230
  },
  "hsl": {
    "h": 289.933,
    "s": 74.874,
    "l": 60.98
  },
  "oklch": {
    "l": 0.65616,
    "c": 0.23355,
    "h": 320.5
  },
  "luminance": 0.24577
}

Semantic roles & 50–950 ramp

primary
#CD51E6
secondary
#B7E5AD
accent
#D70E30
background
#FEF8FE
surface
#FCF0FD
border
#D5CBD5
text
#160C16
muted
#847D84

Preview Lab

Preview with #CD51E6

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

Preview Lab → · Contrast checker → · Palette generator →

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