#A22FAB#A22FAB

#A22FAB is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 52.9% C 0.205 H 324.8°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#A22FAB
RGBrgb(162, 47, 171)
HSLhsl(296, 57%, 43%)
HSVhsv(296, 73%, 67%)
CMYKcmyk(5.3%, 72.5%, 0%, 32.9%)
CIE-LABlab(42.24, 61.74, -42.51)
CIE-LCHlch(42.24, 74.96, 325.45°)
OKLaboklab(52.9% 0.1678 -0.1183)
OKLCHoklch(52.9% 0.205 324.8)
XYZxyz(23.2669, 12.6562, 39.7376)
Luminance0.1265 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A22FAB #38AB2F
analogous
#642FAB #A22FAB #AB2F76
triadic
#A22FAB #ABA22F #2FABA2
tetradic
#A22FAB #AB642F #38AB2F #2F76AB
square
#A22FAB #AB642F #38AB2F #2F76AB
split-complementary
#A22FAB #76AB2F #2FAB64
monochromatic
#47154B #75227B #A22FAB #C44ACD #D37ADA

Accessibility & contrast

On white

5.95
#A22FAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#A22FAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A22FAB
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A22FAB#FFFFFF#000000##FFFFFF
##A22FAB1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#055BAE
Deuteranopia (green-blind)
#4868A8
Tritanopia (blue-blind)
#A5446A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #a22fab;
/* rgb */ color: rgb(162, 47, 171);
/* oklch */ color: oklch(52.9% 0.205 324.8);
Tailwind
colors: {
  custom: {
    50: '#c173c4',
    500: '#a22fab',
    950: '#000000',
  },
}
SCSS
$custom: #a22fab;
$custom-light: #c173c4;
$custom-dark: #000000;
JSON
{
  "hex": "#a22fab",
  "rgb": {
    "r": 162,
    "g": 47,
    "b": 171
  },
  "hsl": {
    "h": 295.645,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.52897,
    "c": 0.20534,
    "h": 324.8
  },
  "luminance": 0.12655
}

Semantic roles & 50–950 ramp

primary
#A22FAB
secondary
#79C373
accent
#E04853
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #A22FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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