#A222A8#A222A8

#A222A8 is a mid, highly saturated purple. Relative luminance 0.117; OKLCH L 51.7% C 0.216 H 326.1°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#A222A8
RGBrgb(162, 34, 168)
HSLhsl(297, 66%, 40%)
HSVhsv(297, 80%, 66%)
CMYKcmyk(3.6%, 79.8%, 0%, 34.1%)
CIE-LABlab(40.66, 65.26, -43.24)
CIE-LCHlch(40.66, 78.28, 326.47°)
OKLaboklab(51.72% 0.1791 -0.1204)
OKLCHoklch(51.72% 0.216 326.1)
XYZxyz(22.5398, 11.6542, 38.1005)
Luminance0.1165 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A222A8 #28A822
analogous
#5F22A8 #A222A8 #A8226B
triadic
#A222A8 #A8A222 #22A8A2
tetradic
#A222A8 #A85F22 #28A822 #226BA8
square
#A222A8 #A85F22 #28A822 #226BA8
split-complementary
#A222A8 #6BA822 #22A85F
monochromatic
#400D42 #711875 #A222A8 #CE32D5 #DA65E0

Accessibility & contrast

On white

6.31
#A222A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#A222A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A222A8
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A222A8#FFFFFF#000000##FFFFFF
##A222A81.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AB
Deuteranopia (green-blind)
#4465A5
Tritanopia (blue-blind)
#A63B66
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a222a8;
/* rgb */ color: rgb(162, 34, 168);
/* oklch */ color: oklch(51.7% 0.216 326.1);
Tailwind
colors: {
  custom: {
    50: '#c26ec2',
    500: '#a222a8',
    950: '#000000',
  },
}
SCSS
$custom: #a222a8;
$custom-light: #c26ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#a222a8",
  "rgb": {
    "r": 162,
    "g": 34,
    "b": 168
  },
  "hsl": {
    "h": 297.313,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.51716,
    "c": 0.21582,
    "h": 326.1
  },
  "luminance": 0.11653
}

Semantic roles & 50–950 ramp

primary
#A222A8
secondary
#65C561
accent
#E93F46
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #A222A8

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

Preview Lab → · Contrast checker → · Palette generator →

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