#D8A2FE#D8A2FE

#D8A2FE is a light, vivid violet. Relative luminance 0.476; OKLCH L 79.5% C 0.138 H 310.4°. Best body text is #000000 at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#D8A2FE
RGBrgb(216, 162, 254)
HSLhsl(275, 98%, 82%)
HSVhsv(275, 36%, 100%)
CMYKcmyk(15%, 36.2%, 0%, 0.4%)
CIE-LABlab(74.57, 36.44, -38.13)
CIE-LCHlch(74.57, 52.74, 313.70°)
OKLaboklab(79.53% 0.0897 -0.1052)
OKLCHoklch(79.53% 0.138 310.4)
XYZxyz(59.1254, 47.5961, 99.8190)
Luminance0.4759 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8A2FE #C8FEA2
analogous
#AAA2FE #D8A2FE #FEA2F6
triadic
#D8A2FE #FED8A2 #A2FED8
tetradic
#D8A2FE #FEAAA2 #C8FEA2 #A2F6FE
square
#D8A2FE #FEAAA2 #C8FEA2 #A2F6FE
split-complementary
#D8A2FE #F6FEA2 #A2FEAA
monochromatic
#A529FD #BF65FD #D8A2FE #F1DFFF #F2E1FF

Accessibility & contrast

On white

2.00
#D8A2FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.52
#D8A2FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8A2FE
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8A2FE#FFFFFF#000000##000000
##D8A2FE1.002.0010.5210.52
#FFFFFF2.001.0021.0021.00
#00000010.5221.001.001.00
##00000010.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#91B5FF
Deuteranopia (green-blind)
#9DB9FB
Tritanopia (blue-blind)
#D4AFC4
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #d8a2fe;
/* rgb */ color: rgb(216, 162, 254);
/* oklch */ color: oklch(79.5% 0.138 310.4);
Tailwind
colors: {
  custom: {
    50: '#e5beff',
    500: '#d8a2fe',
    950: '#000000',
  },
}
SCSS
$custom: #d8a2fe;
$custom-light: #e5beff;
$custom-dark: #000000;
JSON
{
  "hex": "#d8a2fe",
  "rgb": {
    "r": 216,
    "g": 162,
    "b": 254
  },
  "hsl": {
    "h": 275.217,
    "s": 97.872,
    "l": 81.569
  },
  "oklch": {
    "l": 0.79533,
    "c": 0.13823,
    "h": 310.4
  },
  "luminance": 0.47595
}

Semantic roles & 50–950 ramp

primary
#D8A2FE
secondary
#E2F7D4
accent
#E6005F
background
#FEFBFF
surface
#FCF7FF
border
#D5D0D7
text
#161218
muted
#848186

Preview Lab

Preview with #D8A2FE

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

Preview Lab → · Contrast checker → · Palette generator →

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