#D99EFE#D99EFE

#D99EFE is a light, vivid violet. Relative luminance 0.464; OKLCH L 79.0% C 0.145 H 311.6°. Best body text is #000000 at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#D99EFE
RGBrgb(217, 158, 254)
HSLhsl(277, 98%, 81%)
HSVhsv(277, 38%, 100%)
CMYKcmyk(14.6%, 37.8%, 0%, 0.4%)
CIE-LABlab(73.78, 38.88, -39.35)
CIE-LCHlch(73.78, 55.32, 314.66°)
OKLaboklab(78.96% 0.0964 -0.1087)
OKLCHoklch(78.96% 0.145 311.6)
XYZxyz(58.7284, 46.3621, 99.6017)
Luminance0.4636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D99EFE #C3FE9E
analogous
#A99EFE #D99EFE #FE9EF3
triadic
#D99EFE #FED99E #9EFED9
tetradic
#D99EFE #FEA99E #C3FE9E #9EF3FE
square
#D99EFE #FEA99E #C3FE9E #9EF3FE
split-complementary
#D99EFE #F3FE9E #9EFEA9
monochromatic
#AA25FD #C161FD #D99EFE #F1DBFF #F3E1FF

Accessibility & contrast

On white

2.04
#D99EFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.27
#D99EFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D99EFE
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D99EFE#FFFFFF#000000##000000
##D99EFE1.002.0410.2710.27
#FFFFFF2.041.0021.0021.00
#00000010.2721.001.001.00
##00000010.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8CB2FF
Deuteranopia (green-blind)
#9AB7FB
Tritanopia (blue-blind)
#D5ACC2
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #d99efe;
/* rgb */ color: rgb(217, 158, 254);
/* oklch */ color: oklch(79.0% 0.145 311.6);
Tailwind
colors: {
  custom: {
    50: '#e6bbff',
    500: '#d99efe',
    950: '#000000',
  },
}
SCSS
$custom: #d99efe;
$custom-light: #e6bbff;
$custom-dark: #000000;
JSON
{
  "hex": "#d99efe",
  "rgb": {
    "r": 217,
    "g": 158,
    "b": 254
  },
  "hsl": {
    "h": 276.875,
    "s": 97.959,
    "l": 80.784
  },
  "oklch": {
    "l": 0.78958,
    "c": 0.14528,
    "h": 311.6
  },
  "luminance": 0.46361
}

Semantic roles & 50–950 ramp

primary
#D99EFE
secondary
#E1F7D4
accent
#E60058
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#161218
muted
#848186

Preview Lab

Preview with #D99EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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