#A22BAB#A22BAB

#A22BAB is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.6% C 0.210 H 324.9°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#A22BAB
RGBrgb(162, 43, 171)
HSLhsl(296, 60%, 42%)
HSVhsv(296, 75%, 67%)
CMYKcmyk(5.3%, 74.9%, 0%, 32.9%)
CIE-LABlab(41.77, 63.09, -43.26)
CIE-LCHlch(41.77, 76.50, 325.56°)
OKLaboklab(52.56% 0.1715 -0.1205)
OKLCHoklch(52.56% 0.21 324.9)
XYZxyz(23.1143, 12.3509, 39.6867)
Luminance0.1235 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A22BAB #34AB2B
analogous
#622BAB #A22BAB #AB2B74
triadic
#A22BAB #ABA22B #2BABA2
tetradic
#A22BAB #AB622B #34AB2B #2B74AB
square
#A22BAB #AB622B #34AB2B #2B74AB
split-complementary
#A22BAB #74AB2B #2BAB62
monochromatic
#451249 #741F7A #A22BAB #C643D0 #D574DC

Accessibility & contrast

On white

6.05
#A22BAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#A22BAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A22BAB
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A22BAB#FFFFFF#000000##FFFFFF
##A22BAB1.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AE
Deuteranopia (green-blind)
#4667A8
Tritanopia (blue-blind)
#A64269
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #a22bab;
/* rgb */ color: rgb(162, 43, 171);
/* oklch */ color: oklch(52.6% 0.210 324.9);
Tailwind
colors: {
  custom: {
    50: '#c171c4',
    500: '#a22bab',
    950: '#000000',
  },
}
SCSS
$custom: #a22bab;
$custom-light: #c171c4;
$custom-dark: #000000;
JSON
{
  "hex": "#a22bab",
  "rgb": {
    "r": 162,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 295.781,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.5256,
    "c": 0.20963,
    "h": 324.9
  },
  "luminance": 0.12349
}

Semantic roles & 50–950 ramp

primary
#A22BAB
secondary
#74C46E
accent
#E34550
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #A22BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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