#D8A2F7#D8A2F7

#D8A2F7 is a light, vivid violet. Relative luminance 0.472; OKLCH L 79.2% C 0.130 H 312.6°. Best body text is #000000 at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#D8A2F7
RGBrgb(216, 162, 247)
HSLhsl(278, 84%, 80%)
HSVhsv(278, 34%, 97%)
CMYKcmyk(12.6%, 34.4%, 0%, 3.1%)
CIE-LABlab(74.29, 34.98, -34.78)
CIE-LCHlch(74.29, 49.33, 315.16°)
OKLaboklab(79.23% 0.0881 -0.0956)
OKLCHoklch(79.23% 0.13 312.6)
XYZxyz(58.0249, 47.1559, 94.0229)
Luminance0.4716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8A2F7 #C1F7A2
analogous
#AEA2F7 #D8A2F7 #F7A2EB
triadic
#D8A2F7 #F7D8A2 #A2F7D8
tetradic
#D8A2F7 #F7AEA2 #C1F7A2 #A2EBF7
square
#D8A2F7 #F7AEA2 #C1F7A2 #A2EBF7
split-complementary
#D8A2F7 #EBF7A2 #A2F7AE
monochromatic
#A931ED #C06AF2 #D8A2F7 #F0DAFC #F3E3FD

Accessibility & contrast

On white

2.01
#D8A2F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.43
#D8A2F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8A2F7
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8A2F7#FFFFFF#000000##000000
##D8A2F71.002.0110.4310.43
#FFFFFF2.011.0021.0021.00
#00000010.4321.001.001.00
##00000010.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#94B4FA
Deuteranopia (green-blind)
#A0B8F4
Tritanopia (blue-blind)
#D5ADC1
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #d8a2f7;
/* rgb */ color: rgb(216, 162, 247);
/* oklch */ color: oklch(79.2% 0.130 312.6);
Tailwind
colors: {
  custom: {
    50: '#e5befa',
    500: '#d8a2f7',
    950: '#000000',
  },
}
SCSS
$custom: #d8a2f7;
$custom-light: #e5befa;
$custom-dark: #000000;
JSON
{
  "hex": "#d8a2f7",
  "rgb": {
    "r": 216,
    "g": 162,
    "b": 247
  },
  "hsl": {
    "h": 278.118,
    "s": 84.158,
    "l": 80.196
  },
  "oklch": {
    "l": 0.79229,
    "c": 0.13001,
    "h": 312.6
  },
  "luminance": 0.47155
}

Semantic roles & 50–950 ramp

primary
#D8A2F7
secondary
#E1F5D6
accent
#E10555
background
#FEFBFF
surface
#FCF7FF
border
#D5D0D7
text
#161217
muted
#848185

Preview Lab

Preview with #D8A2F7

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

Preview Lab → · Contrast checker → · Palette generator →

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