#D99EF2#D99EF2

#D99EF2 is a light, vivid purple. Relative luminance 0.456; OKLCH L 78.4% C 0.132 H 315.5°. Best body text is #000000 at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#D99EF2
RGBrgb(217, 158, 242)
HSLhsl(282, 76%, 78%)
HSVhsv(282, 35%, 95%)
CMYKcmyk(10.3%, 34.7%, 0%, 5.1%)
CIE-LABlab(73.30, 36.42, -33.60)
CIE-LCHlch(73.30, 49.55, 317.31°)
OKLaboklab(78.43% 0.0938 -0.0922)
OKLCHoklch(78.43% 0.132 315.5)
XYZxyz(56.8667, 45.6174, 89.7966)
Luminance0.4562 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D99EF2 #B7F29E
analogous
#AF9EF2 #D99EF2 #F29EE1
triadic
#D99EF2 #F2D99E #9EF2D9
tetradic
#D99EF2 #F2AF9E #B7F29E #9EE1F2
square
#D99EF2 #F2AF9E #B7F29E #9EE1F2
split-complementary
#D99EF2 #E1F29E #9EF2AF
monochromatic
#AF32E4 #C468EB #D99EF2 #EED4F9 #F4E4FB

Accessibility & contrast

On white

2.07
#D99EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.12
#D99EF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D99EF2
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D99EF2#FFFFFF#000000##000000
##D99EF21.002.0710.1210.12
#FFFFFF2.071.0021.0021.00
#00000010.1221.001.001.00
##00000010.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#91B0F5
Deuteranopia (green-blind)
#9FB6EF
Tritanopia (blue-blind)
#D8A9BD
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #d99ef2;
/* rgb */ color: rgb(217, 158, 242);
/* oklch */ color: oklch(78.4% 0.132 315.5);
Tailwind
colors: {
  custom: {
    50: '#e6bbf6',
    500: '#d99ef2',
    950: '#000000',
  },
}
SCSS
$custom: #d99ef2;
$custom-light: #e6bbf6;
$custom-dark: #000000;
JSON
{
  "hex": "#d99ef2",
  "rgb": {
    "r": 217,
    "g": 158,
    "b": 242
  },
  "hsl": {
    "h": 282.143,
    "s": 76.364,
    "l": 78.431
  },
  "oklch": {
    "l": 0.78433,
    "c": 0.13152,
    "h": 315.5
  },
  "luminance": 0.45616
}

Semantic roles & 50–950 ramp

primary
#D99EF2
secondary
#E0F3D8
accent
#D90D4A
background
#FEFBFF
surface
#FCF6FE
border
#D5D0D6
text
#161217
muted
#848185

Preview Lab

Preview with #D99EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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