#A21FA6#A21FA6

#A21FA6 is a mid, highly saturated purple. Relative luminance 0.114; OKLCH L 51.4% C 0.217 H 326.8°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#A21FA6
RGBrgb(162, 31, 166)
HSLhsl(298, 69%, 39%)
HSVhsv(298, 81%, 65%)
CMYKcmyk(2.4%, 81.3%, 0%, 34.9%)
CIE-LABlab(40.27, 65.70, -42.67)
CIE-LCHlch(40.27, 78.34, 327.00°)
OKLaboklab(51.4% 0.1814 -0.1187)
OKLCHoklch(51.4% 0.217 326.8)
XYZxyz(22.2728, 11.4161, 37.0994)
Luminance0.1142 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A21FA6 #23A61F
analogous
#5E1FA6 #A21FA6 #A61F66
triadic
#A21FA6 #A6A21F #1FA6A2
tetradic
#A21FA6 #A65E1F #23A61F #1F66A6
square
#A21FA6 #A65E1F #23A61F #1F66A6
split-complementary
#A21FA6 #66A61F #1FA65E
monochromatic
#3D0C3F #701572 #A21FA6 #D22BD7 #DD5EE1

Accessibility & contrast

On white

6.40
#A21FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#A21FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A21FA6
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A21FA6#FFFFFF#000000##FFFFFF
##A21FA61.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A9
Deuteranopia (green-blind)
#4464A3
Tritanopia (blue-blind)
#A73964
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a21fa6;
/* rgb */ color: rgb(162, 31, 166);
/* oklch */ color: oklch(51.4% 0.217 326.8);
Tailwind
colors: {
  custom: {
    50: '#c26dc1',
    500: '#a21fa6',
    950: '#000000',
  },
}
SCSS
$custom: #a21fa6;
$custom-light: #c26dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#a21fa6",
  "rgb": {
    "r": 162,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 298.222,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.51402,
    "c": 0.2168,
    "h": 326.8
  },
  "luminance": 0.11415
}

Semantic roles & 50–950 ramp

primary
#A21FA6
secondary
#5EC55B
accent
#EB3C42
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A21FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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