#D2A2FF#D2A2FF

#D2A2FF is a light, vivid violet. Relative luminance 0.468; OKLCH L 79.0% C 0.137 H 307.2°. Best body text is #000000 at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#D2A2FF
RGBrgb(210, 162, 255)
HSLhsl(271, 100%, 82%)
HSVhsv(271, 36%, 100%)
CMYKcmyk(17.6%, 36.5%, 0%, 0%)
CIE-LABlab(74.04, 34.89, -39.55)
CIE-LCHlch(74.04, 52.74, 311.42°)
OKLaboklab(79.01% 0.0831 -0.1094)
OKLCHoklch(79.01% 0.137 307.2)
XYZxyz(57.5452, 46.7628, 100.5829)
Luminance0.4676 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2A2FF #CFFFA2
analogous
#A4A2FF #D2A2FF #FFA2FD
triadic
#D2A2FF #FFD2A2 #A2FFD2
tetradic
#D2A2FF #FFA4A2 #CFFFA2 #A2FDFF
square
#D2A2FF #FFA4A2 #CFFFA2 #A2FDFF
split-complementary
#D2A2FF #FDFFA2 #A2FFA4
monochromatic
#9728FF #B465FF #D2A2FF #F0DFFF #F0E0FF

Accessibility & contrast

On white

2.03
#D2A2FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.35
#D2A2FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2A2FF
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2A2FF#FFFFFF#000000##000000
##D2A2FF1.002.0310.3510.35
#FFFFFF2.031.0021.0021.00
#00000010.3521.001.001.00
##00000010.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8FB4FF
Deuteranopia (green-blind)
#99B7FC
Tritanopia (blue-blind)
#CCB0C5
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #d2a2ff;
/* rgb */ color: rgb(210, 162, 255);
/* oklch */ color: oklch(79.0% 0.137 307.2);
Tailwind
colors: {
  custom: {
    50: '#e1beff',
    500: '#d2a2ff',
    950: '#000000',
  },
}
SCSS
$custom: #d2a2ff;
$custom-light: #e1beff;
$custom-dark: #000000;
JSON
{
  "hex": "#d2a2ff",
  "rgb": {
    "r": 210,
    "g": 162,
    "b": 255
  },
  "hsl": {
    "h": 270.968,
    "s": 100,
    "l": 81.765
  },
  "oklch": {
    "l": 0.79011,
    "c": 0.13733,
    "h": 307.2
  },
  "luminance": 0.46762
}

Semantic roles & 50–950 ramp

primary
#D2A2FF
secondary
#E5F7D4
accent
#E6006F
background
#FDFBFF
surface
#FBF7FF
border
#D4D0D7
text
#151218
muted
#838186

Preview Lab

Preview with #D2A2FF

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

Preview Lab → · Contrast checker → · Palette generator →

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