#A22871#A22871

#A22871 is a mid, vivid pink. Relative luminance 0.104; OKLCH L 49.3% C 0.172 H 348.7°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#A22871
RGBrgb(162, 40, 113)
HSLhsl(324, 60%, 40%)
HSVhsv(324, 75%, 64%)
CMYKcmyk(0%, 75.3%, 30.2%, 36.5%)
CIE-LABlab(38.54, 55.42, -12.90)
CIE-LCHlch(38.54, 56.90, 346.89°)
OKLaboklab(49.3% 0.169 -0.0339)
OKLCHoklch(49.3% 0.172 348.7)
XYZxyz(18.6407, 10.3933, 16.6440)
Luminance0.1039 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A22871 #28A259
analogous
#9628A2 #A22871 #A22834
triadic
#A22871 #71A228 #2871A2
tetradic
#A22871 #A29628 #28A259 #2834A2
square
#A22871 #A29628 #28A259 #2834A2
split-complementary
#A22871 #34A228 #28A296
monochromatic
#40102D #711C4F #A22871 #CE3992 #DA6AAD

Accessibility & contrast

On white

6.82
#A22871 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#A22871 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A22871
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A22871#FFFFFF#000000##FFFFFF
##A228711.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B4D73
Deuteranopia (green-blind)
#5F626E
Tritanopia (blue-blind)
#AE2249
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #a22871;
/* rgb */ color: rgb(162, 40, 113);
/* oklch */ color: oklch(49.3% 0.172 348.7);
Tailwind
colors: {
  custom: {
    50: '#c26e99',
    500: '#a22871',
    950: '#000000',
  },
}
SCSS
$custom: #a22871;
$custom-light: #c26e99;
$custom-dark: #000000;
JSON
{
  "hex": "#a22871",
  "rgb": {
    "r": 162,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 324.098,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.49299,
    "c": 0.1724,
    "h": 348.7
  },
  "luminance": 0.10391
}

Semantic roles & 50–950 ramp

primary
#A22871
secondary
#65C18A
accent
#E48444
background
#FCF7F9
surface
#F8EDF2
border
#D1C8CC
text
#13080E
muted
#827B7E

Preview Lab

Preview with #A22871

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

Preview Lab → · Contrast checker → · Palette generator →

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