#CD51E2#CD51E2

#CD51E2 is a light, highly saturated purple. Relative luminance 0.244; OKLCH L 65.4% C 0.230 H 321.6°. Best body text is #000000 at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#CD51E2
RGBrgb(205, 81, 226)
HSLhsl(291, 71%, 60%)
HSVhsv(291, 64%, 89%)
CMYKcmyk(9.3%, 64.2%, 0%, 11.4%)
CIE-LABlab(56.44, 68.11, -51.28)
CIE-LCHlch(56.44, 85.26, 323.02°)
OKLaboklab(65.39% 0.1803 -0.143)
OKLCHoklch(65.39% 0.23 321.6)
XYZxyz(41.8452, 24.3571, 74.4340)
Luminance0.2435 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD51E2 #66E251
analogous
#8451E2 #CD51E2 #E251AF
triadic
#CD51E2 #E2CD51 #51E2CD
tetradic
#CD51E2 #E28451 #66E251 #51AFE2
square
#CD51E2 #E28451 #66E251 #51AFE2
split-complementary
#CD51E2 #AFE251 #51E284
monochromatic
#8B1A9E #B923D3 #CD51E2 #DC85EB #EBBAF3

Accessibility & contrast

On white

3.58
#CD51E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.87
#CD51E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD51E2
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD51E2#FFFFFF#000000##000000
##CD51E21.003.585.875.87
#FFFFFF3.581.0021.0021.00
#0000005.8721.001.001.00
##0000005.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B7EE6
Deuteranopia (green-blind)
#628CDE
Tritanopia (blue-blind)
#CF6993
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #cd51e2;
/* rgb */ color: rgb(205, 81, 226);
/* oklch */ color: oklch(65.4% 0.230 321.6);
Tailwind
colors: {
  custom: {
    50: '#e08aec',
    500: '#cd51e2',
    950: '#000000',
  },
}
SCSS
$custom: #cd51e2;
$custom-light: #e08aec;
$custom-dark: #000000;
JSON
{
  "hex": "#cd51e2",
  "rgb": {
    "r": 205,
    "g": 81,
    "b": 226
  },
  "hsl": {
    "h": 291.31,
    "s": 71.429,
    "l": 60.196
  },
  "oklch": {
    "l": 0.65387,
    "c": 0.23008,
    "h": 321.6
  },
  "luminance": 0.24355
}

Semantic roles & 50–950 ramp

primary
#CD51E2
secondary
#B4E3AC
accent
#D3122E
background
#FEF8FE
surface
#FCF0FD
border
#D5CBD5
text
#160C16
muted
#847D84

Preview Lab

Preview with #CD51E2

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

Preview Lab → · Contrast checker → · Palette generator →

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