#CD74EC#CD74EC

#CD74EC is a light, vivid purple. Relative luminance 0.315; OKLCH L 70.3% C 0.189 H 316.7°. Best body text is #000000 at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#CD74EC
RGBrgb(205, 116, 236)
HSLhsl(285, 76%, 69%)
HSVhsv(285, 51%, 93%)
CMYKcmyk(13.1%, 50.8%, 0%, 7.5%)
CIE-LABlab(62.95, 53.85, -46.56)
CIE-LCHlch(62.95, 71.18, 319.15°)
OKLaboklab(70.31% 0.1376 -0.1295)
OKLCHoklch(70.31% 0.189 316.7)
XYZxyz(46.5603, 31.5276, 82.9734)
Luminance0.3153 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD74EC #93EC74
analogous
#9174EC #CD74EC #EC74CF
triadic
#CD74EC #ECCD74 #74ECCD
tetradic
#CD74EC #EC9174 #93EC74 #74CFEC
square
#CD74EC #EC9174 #93EC74 #74CFEC
split-complementary
#CD74EC #CFEC74 #74EC91
monochromatic
#9D1CCA #BA3EE5 #CD74EC #E0AAF3 #F4E0FB

Accessibility & contrast

On white

2.87
#CD74EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.31
#CD74EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD74EC
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD74EC#FFFFFF#000000##000000
##CD74EC1.002.877.317.31
#FFFFFF2.871.0021.0021.00
#0000007.3121.001.001.00
##0000007.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B93F0
Deuteranopia (green-blind)
#779BE9
Tritanopia (blue-blind)
#CC86A5
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #cd74ec;
/* rgb */ color: rgb(205, 116, 236);
/* oklch */ color: oklch(70.3% 0.189 316.7);
Tailwind
colors: {
  custom: {
    50: '#de9ff2',
    500: '#cd74ec',
    950: '#000000',
  },
}
SCSS
$custom: #cd74ec;
$custom-light: #de9ff2;
$custom-dark: #000000;
JSON
{
  "hex": "#cd74ec",
  "rgb": {
    "r": 205,
    "g": 116,
    "b": 236
  },
  "hsl": {
    "h": 284.5,
    "s": 75.949,
    "l": 69.02
  },
  "oklch": {
    "l": 0.70307,
    "c": 0.18893,
    "h": 316.7
  },
  "luminance": 0.31526
}

Semantic roles & 50–950 ramp

primary
#CD74EC
secondary
#D5EFCC
accent
#D80D42
background
#FDFAFE
surface
#FBF3FD
border
#D4CDD5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CD74EC

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

Preview Lab → · Contrast checker → · Palette generator →

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