#A22FA4#A22FA4

#A22FA4 is a mid, vivid purple. Relative luminance 0.124; OKLCH L 52.5% C 0.200 H 327.2°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#A22FA4
RGBrgb(162, 47, 164)
HSLhsl(299, 55%, 41%)
HSVhsv(299, 71%, 64%)
CMYKcmyk(1.2%, 71.3%, 0%, 35.7%)
CIE-LABlab(41.84, 60.53, -38.98)
CIE-LCHlch(41.84, 72.00, 327.22°)
OKLaboklab(52.48% 0.1679 -0.1081)
OKLCHoklch(52.48% 0.2 327.2)
XYZxyz(22.6173, 12.3963, 36.3162)
Luminance0.1240 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A22FA4 #31A42F
analogous
#682FA4 #A22FA4 #A42F6C
triadic
#A22FA4 #A4A22F #2FA4A2
tetradic
#A22FA4 #A4682F #31A42F #2F6CA4
square
#A22FA4 #A4682F #31A42F #2F6CA4
split-complementary
#A22FA4 #6CA42F #2FA468
monochromatic
#441445 #732174 #A22FA4 #C846CA #D676D8

Accessibility & contrast

On white

6.04
#A22FA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#A22FA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A22FA4
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A22FA4#FFFFFF#000000##FFFFFF
##A22FA41.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1859A7
Deuteranopia (green-blind)
#4C68A1
Tritanopia (blue-blind)
#A74166
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #a22fa4;
/* rgb */ color: rgb(162, 47, 164);
/* oklch */ color: oklch(52.5% 0.200 327.2);
Tailwind
colors: {
  custom: {
    50: '#c173bf',
    500: '#a22fa4',
    950: '#000000',
  },
}
SCSS
$custom: #a22fa4;
$custom-light: #c173bf;
$custom-dark: #000000;
JSON
{
  "hex": "#a22fa4",
  "rgb": {
    "r": 162,
    "g": 47,
    "b": 164
  },
  "hsl": {
    "h": 298.974,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.52481,
    "c": 0.19968,
    "h": 327.2
  },
  "luminance": 0.12395
}

Semantic roles & 50–950 ramp

primary
#A22FA4
secondary
#71C06F
accent
#DF494C
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A22FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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