#CD74E8#CD74E8

#CD74E8 is a light, vivid purple. Relative luminance 0.313; OKLCH L 70.1% C 0.185 H 317.9°. Best body text is #000000 at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#CD74E8
RGBrgb(205, 116, 232)
HSLhsl(286, 72%, 68%)
HSVhsv(286, 50%, 91%)
CMYKcmyk(11.6%, 50%, 0%, 9%)
CIE-LABlab(62.76, 53.05, -44.64)
CIE-LCHlch(62.76, 69.33, 319.92°)
OKLaboklab(70.1% 0.1372 -0.1239)
OKLCHoklch(70.1% 0.185 317.9)
XYZxyz(45.9857, 31.2977, 79.9470)
Luminance0.3130 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD74E8 #8FE874
analogous
#9374E8 #CD74E8 #E874C9
triadic
#CD74E8 #E8CD74 #74E8CD
tetradic
#CD74E8 #E89374 #8FE874 #74C9E8
square
#CD74E8 #E89374 #8FE874 #74C9E8
split-complementary
#CD74E8 #C9E874 #74E893
monochromatic
#9C20C2 #BA3FDF #CD74E8 #E0A9F1 #F3DDF9

Accessibility & contrast

On white

2.89
#CD74E8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.26
#CD74E8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD74E8
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD74E8#FFFFFF#000000##000000
##CD74E81.002.897.267.26
#FFFFFF2.891.0021.0021.00
#0000007.2621.001.001.00
##0000007.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E92EC
Deuteranopia (green-blind)
#799BE5
Tritanopia (blue-blind)
#CD85A4
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #cd74e8;
/* rgb */ color: rgb(205, 116, 232);
/* oklch */ color: oklch(70.1% 0.185 317.9);
Tailwind
colors: {
  custom: {
    50: '#de9ff0',
    500: '#cd74e8',
    950: '#000000',
  },
}
SCSS
$custom: #cd74e8;
$custom-light: #de9ff0;
$custom-dark: #000000;
JSON
{
  "hex": "#cd74e8",
  "rgb": {
    "r": 205,
    "g": 116,
    "b": 232
  },
  "hsl": {
    "h": 286.034,
    "s": 71.605,
    "l": 68.235
  },
  "oklch": {
    "l": 0.70102,
    "c": 0.18483,
    "h": 317.9
  },
  "luminance": 0.31296
}

Semantic roles & 50–950 ramp

primary
#CD74E8
secondary
#D2EDCA
accent
#D4123F
background
#FDFAFE
surface
#FBF3FD
border
#D4CDD5
text
#150F16
muted
#837F84

Preview Lab

Preview with #CD74E8

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

Preview Lab → · Contrast checker → · Palette generator →

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