#CD54E2#CD54E2

#CD54E2 is a light, highly saturated purple. Relative luminance 0.248; OKLCH L 65.7% C 0.226 H 321.5°. Best body text is #000000 at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#CD54E2
RGBrgb(205, 84, 226)
HSLhsl(291, 71%, 61%)
HSVhsv(291, 63%, 89%)
CMYKcmyk(9.3%, 62.8%, 0%, 11.4%)
CIE-LABlab(56.89, 66.87, -50.57)
CIE-LCHlch(56.89, 83.83, 322.90°)
OKLaboklab(65.71% 0.1769 -0.1409)
OKLCHoklch(65.71% 0.226 321.5)
XYZxyz(42.0731, 24.8129, 74.5100)
Luminance0.2481 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD54E2 #69E254
analogous
#8654E2 #CD54E2 #E254B0
triadic
#CD54E2 #E2CD54 #54E2CD
tetradic
#CD54E2 #E28654 #69E254 #54B0E2
square
#CD54E2 #E28654 #69E254 #54B0E2
split-complementary
#CD54E2 #B0E254 #54E286
monochromatic
#8D1BA0 #BB24D5 #CD54E2 #DC88EB #ECBDF4

Accessibility & contrast

On white

3.52
#CD54E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.96
#CD54E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD54E2
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD54E2#FFFFFF#000000##000000
##CD54E21.003.525.965.96
#FFFFFF3.521.0021.0021.00
#0000005.9621.001.001.00
##0000005.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3180E6
Deuteranopia (green-blind)
#648DDE
Tritanopia (blue-blind)
#CF6B94
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #cd54e2;
/* rgb */ color: rgb(205, 84, 226);
/* oklch */ color: oklch(65.7% 0.226 321.5);
Tailwind
colors: {
  custom: {
    50: '#e08cec',
    500: '#cd54e2',
    950: '#000000',
  },
}
SCSS
$custom: #cd54e2;
$custom-light: #e08cec;
$custom-dark: #000000;
JSON
{
  "hex": "#cd54e2",
  "rgb": {
    "r": 205,
    "g": 84,
    "b": 226
  },
  "hsl": {
    "h": 291.127,
    "s": 71,
    "l": 60.784
  },
  "oklch": {
    "l": 0.65711,
    "c": 0.22615,
    "h": 321.5
  },
  "luminance": 0.24811
}

Semantic roles & 50–950 ramp

primary
#CD54E2
secondary
#B6E4AE
accent
#D3122F
background
#FEF8FE
surface
#FCF0FD
border
#D5CBD5
text
#160D16
muted
#847D84

Preview Lab

Preview with #CD54E2

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

Preview Lab → · Contrast checker → · Palette generator →

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