#A21FA8#A21FA8

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

Color values

HEX#A21FA8
RGBrgb(162, 31, 168)
HSLhsl(297, 69%, 39%)
HSVhsv(297, 82%, 66%)
CMYKcmyk(3.6%, 81.5%, 0%, 34.1%)
CIE-LABlab(40.39, 66.03, -43.67)
CIE-LCHlch(40.39, 79.17, 326.52°)
OKLaboklab(51.53% 0.1813 -0.1216)
OKLCHoklch(51.53% 0.218 326.1)
XYZxyz(22.4577, 11.4901, 38.0732)
Luminance0.1149 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A21FA8 #25A81F
analogous
#5E1FA8 #A21FA8 #A81F6A
triadic
#A21FA8 #A8A21F #1FA8A2
tetradic
#A21FA8 #A85E1F #25A81F #1F6AA8
square
#A21FA8 #A85E1F #25A81F #1F6AA8
split-complementary
#A21FA8 #6AA81F #1FA85E
monochromatic
#3E0C41 #701574 #A21FA8 #D12CD8 #DC60E2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A21FA8#FFFFFF#000000##FFFFFF
##A21FA81.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)
#0055AB
Deuteranopia (green-blind)
#4265A5
Tritanopia (blue-blind)
#A63A65
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a21fa8;
/* rgb */ color: rgb(162, 31, 168);
/* oklch */ color: oklch(51.5% 0.218 326.1);
Tailwind
colors: {
  custom: {
    50: '#c26dc2',
    500: '#a21fa8',
    950: '#000000',
  },
}
SCSS
$custom: #a21fa8;
$custom-light: #c26dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#a21fa8",
  "rgb": {
    "r": 162,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 297.372,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.51526,
    "c": 0.2183,
    "h": 326.1
  },
  "luminance": 0.11489
}

Semantic roles & 50–950 ramp

primary
#A21FA8
secondary
#61C65D
accent
#EC3C44
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #A21FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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