#A21EA9#A21EA9

#A21EA9 is a mid, highly saturated purple. Relative luminance 0.115; OKLCH L 51.5% C 0.220 H 325.8°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#A21EA9
RGBrgb(162, 30, 169)
HSLhsl(297, 70%, 39%)
HSVhsv(297, 82%, 66%)
CMYKcmyk(4.1%, 82.2%, 0%, 33.7%)
CIE-LABlab(40.37, 66.44, -44.30)
CIE-LCHlch(40.37, 79.86, 326.30°)
OKLaboklab(51.53% 0.1819 -0.1235)
OKLCHoklch(51.53% 0.22 325.8)
XYZxyz(22.5255, 11.4761, 38.5571)
Luminance0.1148 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A21EA9 #25A91E
analogous
#5C1EA9 #A21EA9 #A91E6B
triadic
#A21EA9 #A9A21E #1EA9A2
tetradic
#A21EA9 #A95C1E #25A91E #1E6BA9
square
#A21EA9 #A95C1E #25A91E #1E6BA9
split-complementary
#A21EA9 #6BA91E #1EA95C
monochromatic
#3E0C41 #701575 #A21EA9 #D12BD9 #DC5FE3

Accessibility & contrast

On white

6.37
#A21EA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#A21EA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A21EA9
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A21EA9#FFFFFF#000000##FFFFFF
##A21EA91.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AD
Deuteranopia (green-blind)
#4164A6
Tritanopia (blue-blind)
#A63A65
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a21ea9;
/* rgb */ color: rgb(162, 30, 169);
/* oklch */ color: oklch(51.5% 0.220 325.8);
Tailwind
colors: {
  custom: {
    50: '#c26dc3',
    500: '#a21ea9',
    950: '#000000',
  },
}
SCSS
$custom: #a21ea9;
$custom-light: #c26dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#a21ea9",
  "rgb": {
    "r": 162,
    "g": 30,
    "b": 169
  },
  "hsl": {
    "h": 296.978,
    "s": 69.849,
    "l": 39.02
  },
  "oklch": {
    "l": 0.5153,
    "c": 0.21983,
    "h": 325.8
  },
  "luminance": 0.11475
}

Semantic roles & 50–950 ramp

primary
#A21EA9
secondary
#61C75C
accent
#ED3B44
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #A21EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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