#A21FB4#A21FB4

#A21FB4 is a mid, highly saturated purple. Relative luminance 0.120; OKLCH L 52.3% C 0.227 H 322.3°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#A21FB4
RGBrgb(162, 31, 180)
HSLhsl(293, 71%, 41%)
HSVhsv(293, 83%, 71%)
CMYKcmyk(10%, 82.8%, 0%, 29.4%)
CIE-LABlab(41.15, 68.05, -49.59)
CIE-LCHlch(41.15, 84.21, 323.92°)
OKLaboklab(52.3% 0.18 -0.1389)
OKLCHoklch(52.3% 0.227 322.3)
XYZxyz(23.6276, 11.9581, 44.2348)
Luminance0.1196 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A21FB4 #31B41F
analogous
#581FB4 #A21FB4 #B41F7C
triadic
#A21FB4 #B4A21F #1FB4A2
tetradic
#A21FB4 #B4581F #31B41F #1F7CB4
square
#A21FB4 #B4581F #31B41F #1F7CB4
split-complementary
#A21FB4 #7CB41F #1FB458
monochromatic
#440D4C #731680 #A21FB4 #C834DC #D668E5

Accessibility & contrast

On white

6.19
#A21FB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#A21FB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A21FB4
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A21FB4#FFFFFF#000000##FFFFFF
##A21FB41.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B8
Deuteranopia (green-blind)
#3966B1
Tritanopia (blue-blind)
#A4406C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a21fb4;
/* rgb */ color: rgb(162, 31, 180);
/* oklch */ color: oklch(52.3% 0.227 322.3);
Tailwind
colors: {
  custom: {
    50: '#c26dcb',
    500: '#a21fb4',
    950: '#000000',
  },
}
SCSS
$custom: #a21fb4;
$custom-light: #c26dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#a21fb4",
  "rgb": {
    "r": 162,
    "g": 31,
    "b": 180
  },
  "hsl": {
    "h": 292.752,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.52301,
    "c": 0.2274,
    "h": 322.3
  },
  "luminance": 0.11957
}

Semantic roles & 50–950 ramp

primary
#A21FB4
secondary
#71CB64
accent
#ED3A50
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130813
muted
#827B82

Preview Lab

Preview with #A21FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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