#A22F87#A22F87

#A22F87 is a mid, vivid pink. Relative luminance 0.115; OKLCH L 50.9% C 0.178 H 338.8°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#A22F87
RGBrgb(162, 47, 135)
HSLhsl(314, 55%, 41%)
HSVhsv(314, 71%, 64%)
CMYKcmyk(0%, 71%, 16.7%, 36.5%)
CIE-LABlab(40.35, 55.92, -23.75)
CIE-LCHlch(40.35, 60.76, 336.99°)
OKLaboklab(50.93% 0.1658 -0.0643)
OKLCHoklch(50.93% 0.178 338.8)
XYZxyz(20.2904, 11.4656, 24.0614)
Luminance0.1146 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A22F87 #2FA24A
analogous
#832FA2 #A22F87 #A22F4D
triadic
#A22F87 #87A22F #2F87A2
tetradic
#A22F87 #A2832F #2FA24A #2F4DA2
square
#A22F87 #A2832F #2FA24A #2F4DA2
split-complementary
#A22F87 #4DA22F #2FA283
monochromatic
#431338 #73215F #A22F87 #C945AA #D775C0

Accessibility & contrast

On white

6.38
#A22F87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#A22F87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A22F87
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A22F87#FFFFFF#000000##FFFFFF
##A22F871.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355489
Deuteranopia (green-blind)
#5A6684
Tritanopia (blue-blind)
#AB3457
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a22f87;
/* rgb */ color: rgb(162, 47, 135);
/* oklch */ color: oklch(50.9% 0.178 338.8);
Tailwind
colors: {
  custom: {
    50: '#c172aa',
    500: '#a22f87',
    950: '#000000',
  },
}
SCSS
$custom: #a22f87;
$custom-light: #c172aa;
$custom-dark: #000000;
JSON
{
  "hex": "#a22f87",
  "rgb": {
    "r": 162,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 314.087,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.50927,
    "c": 0.17778,
    "h": 338.8
  },
  "luminance": 0.11464
}

Semantic roles & 50–950 ramp

primary
#A22F87
secondary
#6EBF81
accent
#DE6C49
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A22F87

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

Preview Lab → · Contrast checker → · Palette generator →

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