#CD52EF#CD52EF

#CD52EF is a light, highly saturated purple. Relative luminance 0.252; OKLCH L 66.2% C 0.240 H 318.2°. Best body text is #000000 at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#CD52EF
RGBrgb(205, 82, 239)
HSLhsl(287, 83%, 63%)
HSVhsv(287, 66%, 94%)
CMYKcmyk(14.2%, 65.7%, 0%, 6.3%)
CIE-LABlab(57.32, 70.10, -57.18)
CIE-LCHlch(57.32, 90.46, 320.80°)
OKLaboklab(66.25% 0.179 -0.1602)
OKLCHoklch(66.25% 0.24 318.2)
XYZxyz(43.7720, 25.2476, 84.2122)
Luminance0.2525 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD52EF #74EF52
analogous
#7E52EF #CD52EF #EF52C3
triadic
#CD52EF #EFCD52 #52EFCD
tetradic
#CD52EF #EF7E52 #74EF52 #52C3EF
square
#CD52EF #EF7E52 #74EF52 #52C3EF
split-complementary
#CD52EF #C3EF52 #52EF7E
monochromatic
#9211B6 #BD1AEA #CD52EF #DD8AF4 #EDC2F9

Accessibility & contrast

On white

3.47
#CD52EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.05
#CD52EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD52EF
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD52EF#FFFFFF#000000##000000
##CD52EF1.003.476.056.05
#FFFFFF3.471.0021.0021.00
#0000006.0521.001.001.00
##0000006.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0F82F4
Deuteranopia (green-blind)
#598EEB
Tritanopia (blue-blind)
#CC6F9A
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #cd52ef;
/* rgb */ color: rgb(205, 82, 239);
/* oklch */ color: oklch(66.2% 0.240 318.2);
Tailwind
colors: {
  custom: {
    50: '#e08bf5',
    500: '#cd52ef',
    950: '#000000',
  },
}
SCSS
$custom: #cd52ef;
$custom-light: #e08bf5;
$custom-dark: #000000;
JSON
{
  "hex": "#cd52ef",
  "rgb": {
    "r": 205,
    "g": 82,
    "b": 239
  },
  "hsl": {
    "h": 287.006,
    "s": 83.069,
    "l": 62.941
  },
  "oklch": {
    "l": 0.66249,
    "c": 0.2402,
    "h": 318.2
  },
  "luminance": 0.25246
}

Semantic roles & 50–950 ramp

primary
#CD52EF
secondary
#BEEBB2
accent
#DF0635
background
#FEF8FF
surface
#FCF0FE
border
#D5CBD6
text
#160D17
muted
#847D85

Preview Lab

Preview with #CD52EF

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

Preview Lab → · Contrast checker → · Palette generator →

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