#D99EF8#D99EF8

#D99EF8 is a light, vivid violet. Relative luminance 0.460; OKLCH L 78.7% C 0.138 H 313.4°. Best body text is #000000 at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#D99EF8
RGBrgb(217, 158, 248)
HSLhsl(279, 87%, 80%)
HSVhsv(279, 36%, 97%)
CMYKcmyk(12.5%, 36.3%, 0%, 2.7%)
CIE-LABlab(73.53, 37.64, -36.48)
CIE-LCHlch(73.53, 52.42, 315.89°)
OKLaboklab(78.69% 0.0952 -0.1004)
OKLCHoklch(78.69% 0.138 313.4)
XYZxyz(57.7826, 45.9838, 94.6206)
Luminance0.4598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D99EF8 #BDF89E
analogous
#AC9EF8 #D99EF8 #F89EEA
triadic
#D99EF8 #F8D99E #9EF8D9
tetradic
#D99EF8 #F8AC9E #BDF89E #9EEAF8
square
#D99EF8 #F8AC9E #BDF89E #9EEAF8
split-complementary
#D99EF8 #EAF89E #9EF8AC
monochromatic
#AC2CF0 #C365F4 #D99EF8 #EFD7FC #F4E2FD

Accessibility & contrast

On white

2.06
#D99EF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.20
#D99EF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D99EF8
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D99EF8#FFFFFF#000000##000000
##D99EF81.002.0610.2010.20
#FFFFFF2.061.0021.0021.00
#00000010.2021.001.001.00
##00000010.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8FB1FB
Deuteranopia (green-blind)
#9DB6F5
Tritanopia (blue-blind)
#D7AAC0
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #d99ef8;
/* rgb */ color: rgb(217, 158, 248);
/* oklch */ color: oklch(78.7% 0.138 313.4);
Tailwind
colors: {
  custom: {
    50: '#e6bbfb',
    500: '#d99ef8',
    950: '#000000',
  },
}
SCSS
$custom: #d99ef8;
$custom-light: #e6bbfb;
$custom-dark: #000000;
JSON
{
  "hex": "#d99ef8",
  "rgb": {
    "r": 217,
    "g": 158,
    "b": 248
  },
  "hsl": {
    "h": 279.333,
    "s": 86.538,
    "l": 79.608
  },
  "oklch": {
    "l": 0.78692,
    "c": 0.13836,
    "h": 313.4
  },
  "luminance": 0.45983
}

Semantic roles & 50–950 ramp

primary
#D99EF8
secondary
#E1F5D6
accent
#E30250
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#161217
muted
#848185

Preview Lab

Preview with #D99EF8

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

Preview Lab → · Contrast checker → · Palette generator →

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