#D2A2FC#D2A2FC

#D2A2FC is a light, vivid violet. Relative luminance 0.466; OKLCH L 78.9% C 0.134 H 308.1°. Best body text is #000000 at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#D2A2FC
RGBrgb(210, 162, 252)
HSLhsl(272, 94%, 81%)
HSVhsv(272, 36%, 99%)
CMYKcmyk(16.7%, 35.7%, 0%, 1.2%)
CIE-LABlab(73.91, 34.25, -38.12)
CIE-LCHlch(73.91, 51.24, 311.94°)
OKLaboklab(78.88% 0.0824 -0.1053)
OKLCHoklch(78.88% 0.134 308.1)
XYZxyz(57.0660, 46.5711, 98.0594)
Luminance0.4657 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2A2FC #CCFCA2
analogous
#A5A2FC #D2A2FC #FCA2F9
triadic
#D2A2FC #FCD2A2 #A2FCD2
tetradic
#D2A2FC #FCA5A2 #CCFCA2 #A2F9FC
square
#D2A2FC #FCA5A2 #CCFCA2 #A2F9FC
split-complementary
#D2A2FC #F9FCA2 #A2FCA5
monochromatic
#992BF8 #B567FA #D2A2FC #EFDDFE #F1E1FE

Accessibility & contrast

On white

2.04
#D2A2FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.31
#D2A2FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2A2FC
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2A2FC#FFFFFF#000000##000000
##D2A2FC1.002.0410.3110.31
#FFFFFF2.041.0021.0021.00
#00000010.3121.001.001.00
##00000010.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#90B4FF
Deuteranopia (green-blind)
#9BB6F9
Tritanopia (blue-blind)
#CDAFC3
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #d2a2fc;
/* rgb */ color: rgb(210, 162, 252);
/* oklch */ color: oklch(78.9% 0.134 308.1);
Tailwind
colors: {
  custom: {
    50: '#e1befd',
    500: '#d2a2fc',
    950: '#000000',
  },
}
SCSS
$custom: #d2a2fc;
$custom-light: #e1befd;
$custom-dark: #000000;
JSON
{
  "hex": "#d2a2fc",
  "rgb": {
    "r": 210,
    "g": 162,
    "b": 252
  },
  "hsl": {
    "h": 272,
    "s": 93.75,
    "l": 81.176
  },
  "oklch": {
    "l": 0.78877,
    "c": 0.13368,
    "h": 308.1
  },
  "luminance": 0.46571
}

Semantic roles & 50–950 ramp

primary
#D2A2FC
secondary
#E4F6D5
accent
#E6006B
background
#FDFBFF
surface
#FBF7FF
border
#D4D0D7
text
#151217
muted
#838185

Preview Lab

Preview with #D2A2FC

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

Preview Lab → · Contrast checker → · Palette generator →

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