#A21FA9#A21FA9

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

Color values

HEX#A21FA9
RGBrgb(162, 31, 169)
HSLhsl(297, 69%, 39%)
HSVhsv(297, 82%, 66%)
CMYKcmyk(4.1%, 81.7%, 0%, 33.7%)
CIE-LABlab(40.46, 66.20, -44.17)
CIE-LCHlch(40.46, 79.58, 326.29°)
OKLaboklab(51.59% 0.1812 -0.1231)
OKLCHoklch(51.59% 0.219 325.8)
XYZxyz(22.5512, 11.5275, 38.5657)
Luminance0.1153 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A21FA9 #26A91F
analogous
#5D1FA9 #A21FA9 #A91F6B
triadic
#A21FA9 #A9A21F #1FA9A2
tetradic
#A21FA9 #A95D1F #26A91F #1F6BA9
square
#A21FA9 #A95D1F #26A91F #1F6BA9
split-complementary
#A21FA9 #6BA91F #1FA95D
monochromatic
#3F0C42 #701675 #A21FA9 #D02DD8 #DB60E2

Accessibility & contrast

On white

6.35
#A21FA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#A21FA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A21FA9
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A21FA9#FFFFFF#000000##FFFFFF
##A21FA91.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a21fa9;
/* rgb */ color: rgb(162, 31, 169);
/* oklch */ color: oklch(51.6% 0.219 325.8);
Tailwind
colors: {
  custom: {
    50: '#c26dc3',
    500: '#a21fa9',
    950: '#000000',
  },
}
SCSS
$custom: #a21fa9;
$custom-light: #c26dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#a21fa9",
  "rgb": {
    "r": 162,
    "g": 31,
    "b": 169
  },
  "hsl": {
    "h": 296.957,
    "s": 69,
    "l": 39.216
  },
  "oklch": {
    "l": 0.51589,
    "c": 0.21905,
    "h": 325.8
  },
  "luminance": 0.11526
}

Semantic roles & 50–950 ramp

primary
#A21FA9
secondary
#63C75D
accent
#EC3C45
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #A21FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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