#A22FA6#A22FA6

#A22FA6 is a mid, highly saturated purple. Relative luminance 0.125; OKLCH L 52.6% C 0.201 H 326.5°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#A22FA6
RGBrgb(162, 47, 166)
HSLhsl(298, 56%, 42%)
HSVhsv(298, 72%, 65%)
CMYKcmyk(2.4%, 71.7%, 0%, 34.9%)
CIE-LABlab(41.95, 60.88, -39.99)
CIE-LCHlch(41.95, 72.84, 326.70°)
OKLaboklab(52.6% 0.1679 -0.111)
OKLCHoklch(52.6% 0.201 326.5)
XYZxyz(22.7993, 12.4691, 37.2749)
Luminance0.1247 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A22FA6 #33A62F
analogous
#672FA6 #A22FA6 #A62F6F
triadic
#A22FA6 #A6A22F #2FA6A2
tetradic
#A22FA6 #A6672F #33A62F #2F6FA6
square
#A22FA6 #A6672F #33A62F #2F6FA6
split-complementary
#A22FA6 #6FA62F #2FA667
monochromatic
#451447 #732176 #A22FA6 #C747CB #D577D8

Accessibility & contrast

On white

6.01
#A22FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#A22FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A22FA6
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A22FA6#FFFFFF#000000##FFFFFF
##A22FA61.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#145AA9
Deuteranopia (green-blind)
#4B68A3
Tritanopia (blue-blind)
#A64268
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #a22fa6;
/* rgb */ color: rgb(162, 47, 166);
/* oklch */ color: oklch(52.6% 0.201 326.5);
Tailwind
colors: {
  custom: {
    50: '#c173c1',
    500: '#a22fa6',
    950: '#000000',
  },
}
SCSS
$custom: #a22fa6;
$custom-light: #c173c1;
$custom-dark: #000000;
JSON
{
  "hex": "#a22fa6",
  "rgb": {
    "r": 162,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 297.983,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.52598,
    "c": 0.20128,
    "h": 326.5
  },
  "luminance": 0.12468
}

Semantic roles & 50–950 ramp

primary
#A22FA6
secondary
#73C170
accent
#DF494E
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A22FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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