#D874F7#D874F7

#D874F7 is a light, highly saturated purple. Relative luminance 0.338; OKLCH L 72.1% C 0.205 H 317.6°. Best body text is #000000 at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#D874F7
RGBrgb(216, 116, 247)
HSLhsl(286, 89%, 71%)
HSVhsv(286, 53%, 97%)
CMYKcmyk(12.6%, 53%, 0%, 3.1%)
CIE-LABlab(64.81, 58.91, -49.61)
CIE-LCHlch(64.81, 77.02, 319.90°)
OKLaboklab(72.14% 0.1515 -0.1381)
OKLCHoklch(72.14% 0.205 317.6)
XYZxyz(51.3504, 33.8070, 91.7981)
Luminance0.3381 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D874F7 #93F774
analogous
#9674F7 #D874F7 #F774D4
triadic
#D874F7 #F7D874 #74F7D8
tetradic
#D874F7 #F79674 #93F774 #74D4F7
square
#D874F7 #F79674 #93F774 #74D4F7
split-complementary
#D874F7 #D4F774 #74F796
monochromatic
#B10DE4 #C83AF4 #D874F7 #E8AEFA #F7E2FD

Accessibility & contrast

On white

2.71
#D874F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.76
#D874F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D874F7
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D874F7#FFFFFF#000000##000000
##D874F71.002.717.767.76
#FFFFFF2.711.0021.0021.00
#0000007.7621.001.001.00
##0000007.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5897FB
Deuteranopia (green-blind)
#79A0F4
Tritanopia (blue-blind)
#D788AB
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #d874f7;
/* rgb */ color: rgb(216, 116, 247);
/* oklch */ color: oklch(72.1% 0.205 317.6);
Tailwind
colors: {
  custom: {
    50: '#e7a0fa',
    500: '#d874f7',
    950: '#000000',
  },
}
SCSS
$custom: #d874f7;
$custom-light: #e7a0fa;
$custom-dark: #000000;
JSON
{
  "hex": "#d874f7",
  "rgb": {
    "r": 216,
    "g": 116,
    "b": 247
  },
  "hsl": {
    "h": 285.802,
    "s": 89.116,
    "l": 71.176
  },
  "oklch": {
    "l": 0.72136,
    "c": 0.20495,
    "h": 317.6
  },
  "luminance": 0.33805
}

Semantic roles & 50–950 ramp

primary
#D874F7
secondary
#DAF5D2
accent
#E60036
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#160F17
muted
#847F85

Preview Lab

Preview with #D874F7

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

Preview Lab → · Contrast checker → · Palette generator →

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