#A21DA6#A21DA6

#A21DA6 is a mid, highly saturated purple. Relative luminance 0.113; OKLCH L 51.3% C 0.218 H 326.8°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#A21DA6
RGBrgb(162, 29, 166)
HSLhsl(298, 70%, 38%)
HSVhsv(298, 83%, 65%)
CMYKcmyk(2.4%, 82.5%, 0%, 34.9%)
CIE-LABlab(40.11, 66.19, -42.93)
CIE-LCHlch(40.11, 78.90, 327.03°)
OKLaboklab(51.28% 0.1828 -0.1195)
OKLCHoklch(51.28% 0.218 326.8)
XYZxyz(22.2222, 11.3149, 37.0826)
Luminance0.1131 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A21DA6 #21A61D
analogous
#5D1DA6 #A21DA6 #A61D65
triadic
#A21DA6 #A6A21D #1DA6A2
tetradic
#A21DA6 #A65D1D #21A61D #1D65A6
square
#A21DA6 #A65D1D #21A61D #1D65A6
split-complementary
#A21DA6 #65A61D #1DA65D
monochromatic
#3C0B3E #6F1472 #A21DA6 #D427D9 #DE5BE2

Accessibility & contrast

On white

6.44
#A21DA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#A21DA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A21DA6
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A21DA6#FFFFFF#000000##FFFFFF
##A21DA61.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A9
Deuteranopia (green-blind)
#4364A3
Tritanopia (blue-blind)
#A73863
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a21da6;
/* rgb */ color: rgb(162, 29, 166);
/* oklch */ color: oklch(51.3% 0.218 326.8);
Tailwind
colors: {
  custom: {
    50: '#c26cc1',
    500: '#a21da6',
    950: '#000000',
  },
}
SCSS
$custom: #a21da6;
$custom-light: #c26cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#a21da6",
  "rgb": {
    "r": 162,
    "g": 29,
    "b": 166
  },
  "hsl": {
    "h": 298.248,
    "s": 70.256,
    "l": 38.235
  },
  "oklch": {
    "l": 0.51284,
    "c": 0.21836,
    "h": 326.8
  },
  "luminance": 0.11313
}

Semantic roles & 50–950 ramp

primary
#A21DA6
secondary
#5CC659
accent
#ED3B40
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A21DA6

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

Preview Lab → · Contrast checker → · Palette generator →

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