#D897FE#D897FE

#D897FE is a light, vivid violet. Relative luminance 0.439; OKLCH L 77.7% C 0.156 H 312.2°. Best body text is #000000 at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#D897FE
RGBrgb(216, 151, 254)
HSLhsl(278, 98%, 79%)
HSVhsv(278, 41%, 100%)
CMYKcmyk(15%, 40.6%, 0%, 0.4%)
CIE-LABlab(72.15, 42.34, -41.90)
CIE-LCHlch(72.15, 59.57, 315.30°)
OKLaboklab(77.71% 0.1051 -0.1159)
OKLCHoklch(77.71% 0.156 312.2)
XYZxyz(57.2718, 43.8890, 99.2011)
Luminance0.4389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D897FE #BDFE97
analogous
#A597FE #D897FE #FE97F1
triadic
#D897FE #FED897 #97FED8
tetradic
#D897FE #FEA597 #BDFE97 #97F1FE
square
#D897FE #FEA597 #BDFE97 #97F1FE
split-complementary
#D897FE #F1FE97 #97FEA5
monochromatic
#AB1EFD #C15AFD #D897FE #EFD4FF #F4E1FF

Accessibility & contrast

On white

2.15
#D897FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.78
#D897FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D897FE
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D897FE#FFFFFF#000000##000000
##D897FE1.002.159.789.78
#FFFFFF2.151.0021.0021.00
#0000009.7821.001.001.00
##0000009.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#83ADFF
Deuteranopia (green-blind)
#93B2FB
Tritanopia (blue-blind)
#D4A6BF
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #d897fe;
/* rgb */ color: rgb(216, 151, 254);
/* oklch */ color: oklch(77.7% 0.156 312.2);
Tailwind
colors: {
  custom: {
    50: '#e5b6ff',
    500: '#d897fe',
    950: '#000000',
  },
}
SCSS
$custom: #d897fe;
$custom-light: #e5b6ff;
$custom-dark: #000000;
JSON
{
  "hex": "#d897fe",
  "rgb": {
    "r": 216,
    "g": 151,
    "b": 254
  },
  "hsl": {
    "h": 277.864,
    "s": 98.095,
    "l": 79.412
  },
  "oklch": {
    "l": 0.77709,
    "c": 0.15649,
    "h": 312.2
  },
  "luminance": 0.43888
}

Semantic roles & 50–950 ramp

primary
#D897FE
secondary
#E1F7D4
accent
#E60055
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#161118
muted
#848086

Preview Lab

Preview with #D897FE

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

Preview Lab → · Contrast checker → · Palette generator →

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