#D98ECF#D98ECF

#D98ECF is a light, vivid purple. Relative luminance 0.386; OKLCH L 74.3% C 0.123 H 331.6°. Best body text is #000000 at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#D98ECF
RGBrgb(217, 142, 207)
HSLhsl(308, 50%, 70%)
HSVhsv(308, 35%, 85%)
CMYKcmyk(0%, 34.6%, 4.6%, 14.9%)
CIE-LABlab(68.46, 38.34, -21.78)
CIE-LCHlch(68.46, 44.10, 330.40°)
OKLaboklab(74.34% 0.1086 -0.0587)
OKLCHoklch(74.34% 0.123 331.6)
XYZxyz(49.5501, 38.6049, 63.8609)
Luminance0.3860 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D98ECF #8ED998
analogous
#BD8ED9 #D98ECF #D98EA9
triadic
#D98ECF #CFD98E #8ECFD9
tetradic
#D98ECF #D9BD8E #8ED998 #8EA9D9
square
#D98ECF #D9BD8E #8ED998 #8EA9D9
split-complementary
#D98ECF #A9D98E #8ED9BD
monochromatic
#B13CA1 #CA60BC #D98ECF #E8BCE2 #F7E8F5

Accessibility & contrast

On white

2.41
#D98ECF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.72
#D98ECF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D98ECF
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D98ECF#FFFFFF#000000##000000
##D98ECF1.002.418.728.72
#FFFFFF2.411.0021.0021.00
#0000008.7221.001.001.00
##0000008.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8CA1D1
Deuteranopia (green-blind)
#9FABCD
Tritanopia (blue-blind)
#DF92A6
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #d98ecf;
/* rgb */ color: rgb(217, 142, 207);
/* oklch */ color: oklch(74.3% 0.123 331.6);
Tailwind
colors: {
  custom: {
    50: '#e6b0dd',
    500: '#d98ecf',
    950: '#000000',
  },
}
SCSS
$custom: #d98ecf;
$custom-light: #e6b0dd;
$custom-dark: #000000;
JSON
{
  "hex": "#d98ecf",
  "rgb": {
    "r": 217,
    "g": 142,
    "b": 207
  },
  "hsl": {
    "h": 308,
    "s": 49.669,
    "l": 70.392
  },
  "oklch": {
    "l": 0.74339,
    "c": 0.12343,
    "h": 331.6
  },
  "luminance": 0.38603
}

Semantic roles & 50–950 ramp

primary
#D98ECF
secondary
#D7ECDA
accent
#BD3C29
background
#FEFAFD
surface
#FCF5FB
border
#D5CFD4
text
#161015
muted
#847F83

Preview Lab

Preview with #D98ECF

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

Preview Lab → · Contrast checker → · Palette generator →

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