#D874EF#D874EF

#D874EF is a light, vivid purple. Relative luminance 0.333; OKLCH L 71.7% C 0.197 H 319.9°. Best body text is #000000 at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#D874EF
RGBrgb(216, 116, 239)
HSLhsl(289, 79%, 70%)
HSVhsv(289, 51%, 94%)
CMYKcmyk(9.6%, 51.5%, 0%, 6.3%)
CIE-LABlab(64.42, 57.36, -45.81)
CIE-LCHlch(64.42, 73.41, 321.39°)
OKLaboklab(71.73% 0.1507 -0.127)
OKLCHoklch(71.73% 0.197 319.9)
XYZxyz(50.1423, 33.3237, 85.4355)
Luminance0.3332 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D874EF #8BEF74
analogous
#9A74EF #D874EF #EF74C9
triadic
#D874EF #EFD874 #74EFD8
tetradic
#D874EF #EF9A74 #8BEF74 #74C9EF
square
#D874EF #EF9A74 #8BEF74 #74C9EF
split-complementary
#D874EF #C9EF74 #74EF9A
monochromatic
#AE18D1 #C93DE9 #D874EF #E7ABF5 #F7E2FC

Accessibility & contrast

On white

2.74
#D874EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.66
#D874EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D874EF
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D874EF#FFFFFF#000000##000000
##D874EF1.002.747.667.66
#FFFFFF2.741.0021.0021.00
#0000007.6621.001.001.00
##0000007.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E95F3
Deuteranopia (green-blind)
#7DA0EC
Tritanopia (blue-blind)
#D985A7
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #d874ef;
/* rgb */ color: rgb(216, 116, 239);
/* oklch */ color: oklch(71.7% 0.197 319.9);
Tailwind
colors: {
  custom: {
    50: '#e6a0f5',
    500: '#d874ef',
    950: '#000000',
  },
}
SCSS
$custom: #d874ef;
$custom-light: #e6a0f5;
$custom-dark: #000000;
JSON
{
  "hex": "#d874ef",
  "rgb": {
    "r": 216,
    "g": 116,
    "b": 239
  },
  "hsl": {
    "h": 288.78,
    "s": 79.355,
    "l": 69.608
  },
  "oklch": {
    "l": 0.71725,
    "c": 0.1971,
    "h": 319.9
  },
  "luminance": 0.33322
}

Semantic roles & 50–950 ramp

primary
#D874EF
secondary
#D4F1CE
accent
#DC0A31
background
#FEFAFE
surface
#FDF3FD
border
#D5CDD5
text
#160F17
muted
#847F85

Preview Lab

Preview with #D874EF

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

Preview Lab → · Contrast checker → · Palette generator →

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