#D897EA#D897EA

#D897EA is a light, vivid purple. Relative luminance 0.427; OKLCH L 76.8% C 0.134 H 318.8°. Best body text is #000000 at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#D897EA
RGBrgb(216, 151, 234)
HSLhsl(287, 66%, 75%)
HSVhsv(287, 35%, 92%)
CMYKcmyk(7.7%, 35.5%, 0%, 8.2%)
CIE-LABlab(71.33, 38.28, -32.28)
CIE-LCHlch(71.33, 50.07, 319.86°)
OKLaboklab(76.82% 0.1009 -0.0884)
OKLCHoklch(76.82% 0.134 318.8)
XYZxyz(54.2348, 42.6741, 83.2059)
Luminance0.4267 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D897EA #A9EA97
analogous
#AE97EA #D897EA #EA97D2
triadic
#D897EA #EAD897 #97EAD8
tetradic
#D897EA #EAAE97 #A9EA97 #97D2EA
square
#D897EA #EAAE97 #A9EA97 #97D2EA
split-complementary
#D897EA #D2EA97 #97EAAE
monochromatic
#B231D5 #C564E0 #D897EA #EBCAF4 #F5E6FA

Accessibility & contrast

On white

2.20
#D897EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.53
#D897EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D897EA
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D897EA#FFFFFF#000000##000000
##D897EA1.002.209.539.53
#FFFFFF2.201.0021.0021.00
#0000009.5321.001.001.00
##0000009.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8CAAED
Deuteranopia (green-blind)
#9CB1E7
Tritanopia (blue-blind)
#D9A1B6
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #d897ea;
/* rgb */ color: rgb(216, 151, 234);
/* oklch */ color: oklch(76.8% 0.134 318.8);
Tailwind
colors: {
  custom: {
    50: '#e5b6f1',
    500: '#d897ea',
    950: '#000000',
  },
}
SCSS
$custom: #d897ea;
$custom-light: #e5b6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#d897ea",
  "rgb": {
    "r": 216,
    "g": 151,
    "b": 234
  },
  "hsl": {
    "h": 286.988,
    "s": 66.4,
    "l": 75.49
  },
  "oklch": {
    "l": 0.7682,
    "c": 0.13416,
    "h": 318.8
  },
  "luminance": 0.42673
}

Semantic roles & 50–950 ramp

primary
#D897EA
secondary
#DFF1DA
accent
#CE173F
background
#FEFBFE
surface
#FCF6FD
border
#D5D0D5
text
#161116
muted
#848084

Preview Lab

Preview with #D897EA

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

Preview Lab → · Contrast checker → · Palette generator →

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