#A2228B#A2228B

#A2228B is a mid, vivid pink. Relative luminance 0.107; OKLCH L 50.1% C 0.195 H 336.7°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#A2228B
RGBrgb(162, 34, 139)
HSLhsl(311, 65%, 38%)
HSVhsv(311, 79%, 64%)
CMYKcmyk(0%, 79%, 14.2%, 36.5%)
CIE-LABlab(39.06, 60.74, -28.23)
CIE-LCHlch(39.06, 66.98, 335.07°)
OKLaboklab(50.05% 0.1789 -0.0769)
OKLCHoklch(50.05% 0.195 336.7)
XYZxyz(20.1329, 10.6914, 25.4244)
Luminance0.1069 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2228B #22A239
analogous
#7922A2 #A2228B #A2224B
triadic
#A2228B #8BA222 #228BA2
tetradic
#A2228B #A27922 #22A239 #224BA2
square
#A2228B #A27922 #22A239 #224BA2
split-complementary
#A2228B #4BA222 #22A279
monochromatic
#3D0D34 #6F1760 #A2228B #D32EB5 #DE61C7

Accessibility & contrast

On white

6.69
#A2228B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#A2228B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A2228B
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2228B#FFFFFF#000000##FFFFFF
##A2228B1.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26508E
Deuteranopia (green-blind)
#546388
Tritanopia (blue-blind)
#AB2B55
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a2228b;
/* rgb */ color: rgb(162, 34, 139);
/* oklch */ color: oklch(50.1% 0.195 336.7);
Tailwind
colors: {
  custom: {
    50: '#c16dad',
    500: '#a2228b',
    950: '#000000',
  },
}
SCSS
$custom: #a2228b;
$custom-light: #c16dad;
$custom-dark: #000000;
JSON
{
  "hex": "#a2228b",
  "rgb": {
    "r": 162,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 310.781,
    "s": 65.306,
    "l": 38.431
  },
  "oklch": {
    "l": 0.50052,
    "c": 0.19477,
    "h": 336.7
  },
  "luminance": 0.1069
}

Semantic roles & 50–950 ramp

primary
#A2228B
secondary
#5DC36F
accent
#E85E40
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A2228B

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

Preview Lab → · Contrast checker → · Palette generator →

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