#D2A7EA#D2A7EA

#D2A7EA is a light, moderate violet. Relative luminance 0.473; OKLCH L 79.0% C 0.103 H 313.1°. Best body text is #000000 at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#D2A7EA
RGBrgb(210, 167, 234)
HSLhsl(279, 61%, 79%)
HSVhsv(279, 29%, 92%)
CMYKcmyk(10.3%, 28.6%, 0%, 8.2%)
CIE-LABlab(74.37, 27.76, -27.65)
CIE-LCHlch(74.37, 39.18, 315.11°)
OKLaboklab(78.99% 0.0708 -0.0755)
OKLCHoklch(78.99% 0.104 313.1)
XYZxyz(55.2459, 47.2804, 84.0416)
Luminance0.4728 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2A7EA #BFEAA7
analogous
#B0A7EA #D2A7EA #EAA7E0
triadic
#D2A7EA #EAD2A7 #A7EAD2
tetradic
#D2A7EA #EAB0A7 #BFEAA7 #A7E0EA
square
#D2A7EA #EAB0A7 #BFEAA7 #A7E0EA
split-complementary
#D2A7EA #E0EAA7 #A7EAB0
monochromatic
#9F44D2 #B976DE #D2A7EA #EBD8F6 #F2E6F9

Accessibility & contrast

On white

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

On black

10.46
#D2A7EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2A7EA
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2A7EA#FFFFFF#000000##000000
##D2A7EA1.002.0110.4610.46
#FFFFFF2.011.0021.0021.00
#00000010.4621.001.001.00
##00000010.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9DB5ED
Deuteranopia (green-blind)
#A6B8E8
Tritanopia (blue-blind)
#D0AFBF
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #d2a7ea;
/* rgb */ color: rgb(210, 167, 234);
/* oklch */ color: oklch(79.0% 0.103 313.1);
Tailwind
colors: {
  custom: {
    50: '#e0c1f1',
    500: '#d2a7ea',
    950: '#000000',
  },
}
SCSS
$custom: #d2a7ea;
$custom-light: #e0c1f1;
$custom-dark: #000000;
JSON
{
  "hex": "#d2a7ea",
  "rgb": {
    "r": 210,
    "g": 167,
    "b": 234
  },
  "hsl": {
    "h": 278.507,
    "s": 61.468,
    "l": 78.627
  },
  "oklch": {
    "l": 0.78994,
    "c": 0.1035,
    "h": 313.1
  },
  "luminance": 0.4728
}

Semantic roles & 50–950 ramp

primary
#D2A7EA
secondary
#E2F0DB
accent
#C91C5A
background
#FDFBFE
surface
#FBF7FD
border
#D4D0D5
text
#151216
muted
#838184

Preview Lab

Preview with #D2A7EA

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

Preview Lab → · Contrast checker → · Palette generator →

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