#A222A7#A222A7

#A222A7 is a mid, highly saturated purple. Relative luminance 0.116; OKLCH L 51.7% C 0.215 H 326.4°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#A222A7
RGBrgb(162, 34, 167)
HSLhsl(298, 66%, 39%)
HSVhsv(298, 80%, 65%)
CMYKcmyk(3%, 79.6%, 0%, 34.5%)
CIE-LABlab(40.60, 65.09, -42.74)
CIE-LCHlch(40.60, 77.87, 326.71°)
OKLaboklab(51.65% 0.1792 -0.1189)
OKLCHoklch(51.65% 0.215 326.4)
XYZxyz(22.4470, 11.6170, 37.6118)
Luminance0.1162 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A222A7 #27A722
analogous
#5F22A7 #A222A7 #A7226A
triadic
#A222A7 #A7A222 #22A7A2
tetradic
#A222A7 #A75F22 #27A722 #226AA7
square
#A222A7 #A75F22 #27A722 #226AA7
split-complementary
#A222A7 #6AA722 #22A75F
monochromatic
#3F0D41 #711874 #A222A7 #CF31D5 #DB64DF

Accessibility & contrast

On white

6.32
#A222A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#A222A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A222A7
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A222A7#FFFFFF#000000##FFFFFF
##A222A71.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AA
Deuteranopia (green-blind)
#4465A4
Tritanopia (blue-blind)
#A63B65
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a222a7;
/* rgb */ color: rgb(162, 34, 167);
/* oklch */ color: oklch(51.7% 0.215 326.4);
Tailwind
colors: {
  custom: {
    50: '#c26ec2',
    500: '#a222a7',
    950: '#000000',
  },
}
SCSS
$custom: #a222a7;
$custom-light: #c26ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#a222a7",
  "rgb": {
    "r": 162,
    "g": 34,
    "b": 167
  },
  "hsl": {
    "h": 297.744,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.51654,
    "c": 0.21506,
    "h": 326.4
  },
  "luminance": 0.11615
}

Semantic roles & 50–950 ramp

primary
#A222A7
secondary
#64C560
accent
#E93F45
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #A222A7

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

Preview Lab → · Contrast checker → · Palette generator →

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