#A22F8A#A22F8A

#A22F8A is a mid, vivid pink. Relative luminance 0.115; OKLCH L 51.1% C 0.180 H 337.5°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#A22F8A
RGBrgb(162, 47, 138)
HSLhsl(313, 55%, 41%)
HSVhsv(313, 71%, 64%)
CMYKcmyk(0%, 71%, 14.8%, 36.5%)
CIE-LABlab(40.49, 56.37, -25.37)
CIE-LCHlch(40.49, 61.81, 335.77°)
OKLaboklab(51.07% 0.1662 -0.0689)
OKLCHoklch(51.07% 0.18 337.5)
XYZxyz(20.5046, 11.5513, 25.1895)
Luminance0.1155 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A22F8A #2FA247
analogous
#802FA2 #A22F8A #A22F50
triadic
#A22F8A #8AA22F #2F8AA2
tetradic
#A22F8A #A2802F #2FA247 #2F50A2
square
#A22F8A #A2802F #2FA247 #2F50A2
split-complementary
#A22F8A #50A22F #2FA280
monochromatic
#431339 #732162 #A22F8A #C945AE #D775C2

Accessibility & contrast

On white

6.34
#A22F8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#A22F8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A22F8A
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A22F8A#FFFFFF#000000##FFFFFF
##A22F8A1.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#33548D
Deuteranopia (green-blind)
#596687
Tritanopia (blue-blind)
#AB3558
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a22f8a;
/* rgb */ color: rgb(162, 47, 138);
/* oklch */ color: oklch(51.1% 0.180 337.5);
Tailwind
colors: {
  custom: {
    50: '#c172ac',
    500: '#a22f8a',
    950: '#000000',
  },
}
SCSS
$custom: #a22f8a;
$custom-light: #c172ac;
$custom-dark: #000000;
JSON
{
  "hex": "#a22f8a",
  "rgb": {
    "r": 162,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 312.522,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.51074,
    "c": 0.17989,
    "h": 337.5
  },
  "luminance": 0.11549
}

Semantic roles & 50–950 ramp

primary
#A22F8A
secondary
#6EBF7F
accent
#DE6949
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A22F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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