#A22A8A#A22A8A

#A22A8A is a mid, vivid pink. Relative luminance 0.112; OKLCH L 50.6% C 0.186 H 337.3°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#A22A8A
RGBrgb(162, 42, 138)
HSLhsl(312, 59%, 40%)
HSVhsv(312, 74%, 64%)
CMYKcmyk(0%, 74.1%, 14.8%, 36.5%)
CIE-LABlab(39.87, 58.12, -26.34)
CIE-LCHlch(39.87, 63.82, 335.62°)
OKLaboklab(50.62% 0.1714 -0.0716)
OKLCHoklch(50.62% 0.186 337.3)
XYZxyz(20.3161, 11.1742, 25.1267)
Luminance0.1117 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A22A8A #2AA242
analogous
#7E2AA2 #A22A8A #A22A4E
triadic
#A22A8A #8AA22A #2A8AA2
tetradic
#A22A8A #A27E2A #2AA242 #2A4EA2
square
#A22A8A #A27E2A #2AA242 #2A4EA2
split-complementary
#A22A8A #4EA22A #2AA27E
monochromatic
#411137 #711D61 #A22A8A #CD3DB0 #D96DC4

Accessibility & contrast

On white

6.49
#A22A8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#A22A8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A22A8A
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A22A8A#FFFFFF#000000##FFFFFF
##A22A8A1.006.493.236.49
#FFFFFF6.491.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E528D
Deuteranopia (green-blind)
#576587
Tritanopia (blue-blind)
#AB3157
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a22a8a;
/* rgb */ color: rgb(162, 42, 138);
/* oklch */ color: oklch(50.6% 0.186 337.3);
Tailwind
colors: {
  custom: {
    50: '#c170ac',
    500: '#a22a8a',
    950: '#000000',
  },
}
SCSS
$custom: #a22a8a;
$custom-light: #c170ac;
$custom-dark: #000000;
JSON
{
  "hex": "#a22a8a",
  "rgb": {
    "r": 162,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 312,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.50624,
    "c": 0.18579,
    "h": 337.3
  },
  "luminance": 0.11172
}

Semantic roles & 50–950 ramp

primary
#A22A8A
secondary
#68C079
accent
#E26546
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A22A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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