#D2A2EF#D2A2EF

#D2A2EF is a light, moderate violet. Relative luminance 0.458; OKLCH L 78.3% C 0.118 H 312.2°. Best body text is #000000 at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#D2A2EF
RGBrgb(210, 162, 239)
HSLhsl(277, 71%, 79%)
HSVhsv(277, 32%, 94%)
CMYKcmyk(12.1%, 32.2%, 0%, 6.3%)
CIE-LABlab(73.40, 31.51, -31.86)
CIE-LCHlch(73.40, 44.81, 314.68°)
OKLaboklab(78.32% 0.0793 -0.0874)
OKLCHoklch(78.32% 0.118 312.2)
XYZxyz(55.0760, 45.7751, 87.5787)
Luminance0.4577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2A2EF #BFEFA2
analogous
#ABA2EF #D2A2EF #EFA2E5
triadic
#D2A2EF #EFD2A2 #A2EFD2
tetradic
#D2A2EF #EFABA2 #BFEFA2 #A2E5EF
square
#D2A2EF #EFABA2 #BFEFA2 #A2E5EF
split-complementary
#D2A2EF #E5EFA2 #A2EFAB
monochromatic
#9F3ADD #B96EE6 #D2A2EF #EBD6F8 #F2E5FB

Accessibility & contrast

On white

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

On black

10.15
#D2A2EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2A2EF
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2A2EF#FFFFFF#000000##000000
##D2A2EF1.002.0710.1510.15
#FFFFFF2.071.0021.0021.00
#00000010.1521.001.001.00
##00000010.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#95B2F2
Deuteranopia (green-blind)
#A0B5ED
Tritanopia (blue-blind)
#CFACBE
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #d2a2ef;
/* rgb */ color: rgb(210, 162, 239);
/* oklch */ color: oklch(78.3% 0.118 312.2);
Tailwind
colors: {
  custom: {
    50: '#e0bef4',
    500: '#d2a2ef',
    950: '#000000',
  },
}
SCSS
$custom: #d2a2ef;
$custom-light: #e0bef4;
$custom-dark: #000000;
JSON
{
  "hex": "#d2a2ef",
  "rgb": {
    "r": 210,
    "g": 162,
    "b": 239
  },
  "hsl": {
    "h": 277.403,
    "s": 70.642,
    "l": 78.627
  },
  "oklch": {
    "l": 0.78315,
    "c": 0.11805,
    "h": 312.2
  },
  "luminance": 0.45774
}

Semantic roles & 50–950 ramp

primary
#D2A2EF
secondary
#E2F2D9
accent
#D3135B
background
#FDFBFE
surface
#FBF7FD
border
#D4D0D5
text
#151217
muted
#838185

Preview Lab

Preview with #D2A2EF

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

Preview Lab → · Contrast checker → · Palette generator →

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