#D2A2EC#D2A2EC

#D2A2EC is a light, moderate violet. Relative luminance 0.456; OKLCH L 78.2% C 0.115 H 313.3°. Best body text is #000000 at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#D2A2EC
RGBrgb(210, 162, 236)
HSLhsl(279, 66%, 78%)
HSVhsv(279, 31%, 93%)
CMYKcmyk(11%, 31.4%, 0%, 7.5%)
CIE-LABlab(73.28, 30.89, -30.41)
CIE-LCHlch(73.28, 43.34, 315.45°)
OKLaboklab(78.19% 0.0786 -0.0833)
OKLCHoklch(78.19% 0.115 313.3)
XYZxyz(54.6365, 45.5993, 85.2639)
Luminance0.4560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2A2EC #BCECA2
analogous
#ADA2EC #D2A2EC #ECA2E1
triadic
#D2A2EC #ECD2A2 #A2ECD2
tetradic
#D2A2EC #ECADA2 #BCECA2 #A2E1EC
square
#D2A2EC #ECADA2 #BCECA2 #A2E1EC
split-complementary
#D2A2EC #E1ECA2 #A2ECAD
monochromatic
#A13CD7 #B96FE2 #D2A2EC #EBD5F6 #F3E6FA

Accessibility & contrast

On white

2.08
#D2A2EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##D2A2EC#FFFFFF#000000##000000
##D2A2EC1.002.0810.1210.12
#FFFFFF2.081.0021.0021.00
#00000010.1221.001.001.00
##00000010.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#96B1EF
Deuteranopia (green-blind)
#A1B5EA
Tritanopia (blue-blind)
#D0ABBD
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #d2a2ec;
/* rgb */ color: rgb(210, 162, 236);
/* oklch */ color: oklch(78.2% 0.115 313.3);
Tailwind
colors: {
  custom: {
    50: '#e0bef2',
    500: '#d2a2ec',
    950: '#000000',
  },
}
SCSS
$custom: #d2a2ec;
$custom-light: #e0bef2;
$custom-dark: #000000;
JSON
{
  "hex": "#d2a2ec",
  "rgb": {
    "r": 210,
    "g": 162,
    "b": 236
  },
  "hsl": {
    "h": 278.919,
    "s": 66.071,
    "l": 78.039
  },
  "oklch": {
    "l": 0.7819,
    "c": 0.1145,
    "h": 313.3
  },
  "luminance": 0.45598
}

Semantic roles & 50–950 ramp

primary
#D2A2EC
secondary
#E2F1DA
accent
#CE1858
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151217
muted
#838185

Preview Lab

Preview with #D2A2EC

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

Preview Lab → · Contrast checker → · Palette generator →

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