#CD74EB#CD74EB

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

Color values

HEX#CD74EB
RGBrgb(205, 116, 235)
HSLhsl(285, 75%, 69%)
HSVhsv(285, 51%, 92%)
CMYKcmyk(12.8%, 50.6%, 0%, 7.8%)
CIE-LABlab(62.90, 53.65, -46.08)
CIE-LCHlch(62.90, 70.72, 319.34°)
OKLaboklab(70.26% 0.1375 -0.1281)
OKLCHoklch(70.26% 0.188 317)
XYZxyz(46.4155, 31.4696, 82.2104)
Luminance0.3147 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD74EB #92EB74
analogous
#9274EB #CD74EB #EB74CE
triadic
#CD74EB #EBCD74 #74EBCD
tetradic
#CD74EB #EB9274 #92EB74 #74CEEB
square
#CD74EB #EB9274 #92EB74 #74CEEB
split-complementary
#CD74EB #CEEB74 #74EB92
monochromatic
#9D1DC8 #BA3EE3 #CD74EB #E0AAF3 #F3DFFA

Accessibility & contrast

On white

2.88
#CD74EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.29
#CD74EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD74EB
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD74EB#FFFFFF#000000##000000
##CD74EB1.002.887.297.29
#FFFFFF2.881.0021.0021.00
#0000007.2921.001.001.00
##0000007.2921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cd74eb;
/* rgb */ color: rgb(205, 116, 235);
/* oklch */ color: oklch(70.3% 0.188 317.0);
Tailwind
colors: {
  custom: {
    50: '#de9ff2',
    500: '#cd74eb',
    950: '#000000',
  },
}
SCSS
$custom: #cd74eb;
$custom-light: #de9ff2;
$custom-dark: #000000;
JSON
{
  "hex": "#cd74eb",
  "rgb": {
    "r": 205,
    "g": 116,
    "b": 235
  },
  "hsl": {
    "h": 284.874,
    "s": 74.843,
    "l": 68.824
  },
  "oklch": {
    "l": 0.70255,
    "c": 0.1879,
    "h": 317
  },
  "luminance": 0.31468
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD74EB

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

Preview Lab → · Contrast checker → · Palette generator →

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