#CD74EF#CD74EF

#CD74EF is a light, vivid purple. Relative luminance 0.317; OKLCH L 70.5% C 0.192 H 315.9°. Best body text is #000000 at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#CD74EF
RGBrgb(205, 116, 239)
HSLhsl(283, 79%, 70%)
HSVhsv(283, 51%, 94%)
CMYKcmyk(14.2%, 51.5%, 0%, 6.3%)
CIE-LABlab(63.10, 54.45, -47.99)
CIE-LCHlch(63.10, 72.58, 318.61°)
OKLaboklab(70.46% 0.1379 -0.1336)
OKLCHoklch(70.46% 0.192 315.9)
XYZxyz(46.9998, 31.7034, 85.2882)
Luminance0.3170 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD74EF #96EF74
analogous
#9074EF #CD74EF #EF74D3
triadic
#CD74EF #EFCD74 #74EFCD
tetradic
#CD74EF #EF9074 #96EF74 #74D3EF
square
#CD74EF #EF9074 #96EF74 #74D3EF
split-complementary
#CD74EF #D3EF74 #74EF90
monochromatic
#9E18D1 #B93DE9 #CD74EF #E1ABF5 #F4E2FC

Accessibility & contrast

On white

2.86
#CD74EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.34
#CD74EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD74EF
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD74EF#FFFFFF#000000##000000
##CD74EF1.002.867.347.34
#FFFFFF2.861.0021.0021.00
#0000007.3421.001.001.00
##0000007.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5993F3
Deuteranopia (green-blind)
#759BEC
Tritanopia (blue-blind)
#CB87A7
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #cd74ef;
/* rgb */ color: rgb(205, 116, 239);
/* oklch */ color: oklch(70.5% 0.192 315.9);
Tailwind
colors: {
  custom: {
    50: '#df9ff5',
    500: '#cd74ef',
    950: '#000000',
  },
}
SCSS
$custom: #cd74ef;
$custom-light: #df9ff5;
$custom-dark: #000000;
JSON
{
  "hex": "#cd74ef",
  "rgb": {
    "r": 205,
    "g": 116,
    "b": 239
  },
  "hsl": {
    "h": 283.415,
    "s": 79.355,
    "l": 69.608
  },
  "oklch": {
    "l": 0.70463,
    "c": 0.19202,
    "h": 315.9
  },
  "luminance": 0.31702
}

Semantic roles & 50–950 ramp

primary
#CD74EF
secondary
#D8F1CE
accent
#DC0A44
background
#FDFAFF
surface
#FBF3FE
border
#D4CDD6
text
#150F17
muted
#837F85

Preview Lab

Preview with #CD74EF

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

Preview Lab → · Contrast checker → · Palette generator →

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