#CD5FEC#CD5FEC

#CD5FEC is a light, highly saturated purple. Relative luminance 0.272; OKLCH L 67.5% C 0.220 H 318.2°. Best body text is #000000 at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#CD5FEC
RGBrgb(205, 95, 236)
HSLhsl(287, 79%, 65%)
HSVhsv(287, 60%, 93%)
CMYKcmyk(13.1%, 59.7%, 0%, 7.5%)
CIE-LABlab(59.18, 63.93, -52.53)
CIE-LCHlch(59.18, 82.75, 320.59°)
OKLaboklab(67.54% 0.1643 -0.1467)
OKLCHoklch(67.54% 0.22 318.2)
XYZxyz(44.4073, 27.2215, 82.2557)
Luminance0.2722 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD5FEC #7EEC5F
analogous
#875FEC #CD5FEC #EC5FC4
triadic
#CD5FEC #ECCD5F #5FECCD
tetradic
#CD5FEC #EC875F #7EEC5F #5FC4EC
square
#CD5FEC #EC875F #7EEC5F #5FC4EC
split-complementary
#CD5FEC #C4EC5F #5FEC87
monochromatic
#9616BA #BC28E6 #CD5FEC #DE96F2 #EFCCF9

Accessibility & contrast

On white

3.26
#CD5FEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.44
#CD5FEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD5FEC
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD5FEC#FFFFFF#000000##000000
##CD5FEC1.003.266.446.44
#FFFFFF3.261.0021.0021.00
#0000006.4421.001.001.00
##0000006.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3987F0
Deuteranopia (green-blind)
#6692E8
Tritanopia (blue-blind)
#CD769D
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #cd5fec;
/* rgb */ color: rgb(205, 95, 236);
/* oklch */ color: oklch(67.5% 0.220 318.2);
Tailwind
colors: {
  custom: {
    50: '#df92f3',
    500: '#cd5fec',
    950: '#000000',
  },
}
SCSS
$custom: #cd5fec;
$custom-light: #df92f3;
$custom-dark: #000000;
JSON
{
  "hex": "#cd5fec",
  "rgb": {
    "r": 205,
    "g": 95,
    "b": 236
  },
  "hsl": {
    "h": 286.809,
    "s": 78.771,
    "l": 64.902
  },
  "oklch": {
    "l": 0.67542,
    "c": 0.22024,
    "h": 318.2
  },
  "luminance": 0.2722
}

Semantic roles & 50–950 ramp

primary
#CD5FEC
secondary
#C6EBBB
accent
#DB0A38
background
#FEF9FE
surface
#FCF2FD
border
#D5CCD5
text
#160D17
muted
#847E85

Preview Lab

Preview with #CD5FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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