#D998FF#D998FF

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

Color values

HEX#D998FF
RGBrgb(217, 152, 255)
HSLhsl(278, 100%, 80%)
HSVhsv(278, 40%, 100%)
CMYKcmyk(14.9%, 40.4%, 0%, 0%)
CIE-LABlab(72.51, 42.30, -41.87)
CIE-LCHlch(72.51, 59.52, 315.30°)
OKLaboklab(78.02% 0.105 -0.1159)
OKLCHoklch(78.02% 0.156 312.2)
XYZxyz(57.8904, 44.4292, 100.1144)
Luminance0.4443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D998FF #BEFF98
analogous
#A698FF #D998FF #FF98F2
triadic
#D998FF #FFD998 #98FFD9
tetradic
#D998FF #FFA698 #BEFF98 #98F2FF
square
#D998FF #FFA698 #BEFF98 #98F2FF
split-complementary
#D998FF #F2FF98 #98FFA6
monochromatic
#AC1EFF #C25BFF #D998FF #F0D5FF #F4E0FF

Accessibility & contrast

On white

2.12
#D998FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.89
#D998FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D998FF
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D998FF#FFFFFF#000000##000000
##D998FF1.002.129.899.89
#FFFFFF2.121.0021.0021.00
#0000009.8921.001.001.00
##0000009.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#84AEFF
Deuteranopia (green-blind)
#94B3FC
Tritanopia (blue-blind)
#D5A7C0
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #d998ff;
/* rgb */ color: rgb(217, 152, 255);
/* oklch */ color: oklch(78.0% 0.156 312.2);
Tailwind
colors: {
  custom: {
    50: '#e6b7ff',
    500: '#d998ff',
    950: '#000000',
  },
}
SCSS
$custom: #d998ff;
$custom-light: #e6b7ff;
$custom-dark: #000000;
JSON
{
  "hex": "#d998ff",
  "rgb": {
    "r": 217,
    "g": 152,
    "b": 255
  },
  "hsl": {
    "h": 277.864,
    "s": 100,
    "l": 79.804
  },
  "oklch": {
    "l": 0.78017,
    "c": 0.15638,
    "h": 312.2
  },
  "luminance": 0.44428
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D998FF

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

Preview Lab → · Contrast checker → · Palette generator →

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