#A22A8D#A22A8D

#A22A8D is a mid, vivid pink. Relative luminance 0.113; OKLCH L 50.8% C 0.188 H 336.1°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#A22A8D
RGBrgb(162, 42, 141)
HSLhsl(311, 59%, 40%)
HSVhsv(311, 74%, 64%)
CMYKcmyk(0%, 74.1%, 13%, 36.5%)
CIE-LABlab(40.02, 58.57, -27.95)
CIE-LCHlch(40.02, 64.90, 334.49°)
OKLaboklab(50.78% 0.1718 -0.0762)
OKLCHoklch(50.78% 0.188 336.1)
XYZxyz(20.5363, 11.2623, 26.2864)
Luminance0.1126 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A22A8D #2AA23F
analogous
#7B2AA2 #A22A8D #A22A51
triadic
#A22A8D #8DA22A #2A8DA2
tetradic
#A22A8D #A27B2A #2AA23F #2A51A2
square
#A22A8D #A27B2A #2AA23F #2A51A2
split-complementary
#A22A8D #51A22A #2AA27B
monochromatic
#411138 #711D63 #A22A8D #CD3DB3 #D96DC6

Accessibility & contrast

On white

6.46
#A22A8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#A22A8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A22A8D
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A22A8D#FFFFFF#000000##FFFFFF
##A22A8D1.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5390
Deuteranopia (green-blind)
#55658A
Tritanopia (blue-blind)
#AA3358
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a22a8d;
/* rgb */ color: rgb(162, 42, 141);
/* oklch */ color: oklch(50.8% 0.188 336.1);
Tailwind
colors: {
  custom: {
    50: '#c170ae',
    500: '#a22a8d',
    950: '#000000',
  },
}
SCSS
$custom: #a22a8d;
$custom-light: #c170ae;
$custom-dark: #000000;
JSON
{
  "hex": "#a22a8d",
  "rgb": {
    "r": 162,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 310.5,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.50778,
    "c": 0.1879,
    "h": 336.1
  },
  "luminance": 0.1126
}

Semantic roles & 50–950 ramp

primary
#A22A8D
secondary
#68C077
accent
#E26146
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A22A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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