#A2228A#A2228A

#A2228A is a mid, vivid pink. Relative luminance 0.107; OKLCH L 50.0% C 0.194 H 337.1°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#A2228A
RGBrgb(162, 34, 138)
HSLhsl(311, 65%, 38%)
HSVhsv(311, 79%, 64%)
CMYKcmyk(0%, 79%, 14.8%, 36.5%)
CIE-LABlab(39.01, 60.60, -27.70)
CIE-LCHlch(39.01, 66.63, 335.44°)
OKLaboklab(50% 0.1789 -0.0754)
OKLCHoklch(50% 0.194 337.1)
XYZxyz(20.0602, 10.6623, 25.0414)
Luminance0.1066 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2228A #22A23A
analogous
#7A22A2 #A2228A #A2224A
triadic
#A2228A #8AA222 #228AA2
tetradic
#A2228A #A27A22 #22A23A #224AA2
square
#A2228A #A27A22 #22A23A #224AA2
split-complementary
#A2228A #4AA222 #22A27A
monochromatic
#3D0D34 #6F175F #A2228A #D32EB4 #DE61C6

Accessibility & contrast

On white

6.70
#A2228A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#A2228A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A2228A
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2228A#FFFFFF#000000##FFFFFF
##A2228A1.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264F8D
Deuteranopia (green-blind)
#546387
Tritanopia (blue-blind)
#AB2B55
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a2228a;
/* rgb */ color: rgb(162, 34, 138);
/* oklch */ color: oklch(50.0% 0.194 337.1);
Tailwind
colors: {
  custom: {
    50: '#c16dac',
    500: '#a2228a',
    950: '#000000',
  },
}
SCSS
$custom: #a2228a;
$custom-light: #c16dac;
$custom-dark: #000000;
JSON
{
  "hex": "#a2228a",
  "rgb": {
    "r": 162,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 311.25,
    "s": 65.306,
    "l": 38.431
  },
  "oklch": {
    "l": 0.5,
    "c": 0.1941,
    "h": 337.1
  },
  "luminance": 0.1066
}

Semantic roles & 50–950 ramp

primary
#A2228A
secondary
#5DC370
accent
#E85F40
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A2228A

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

Preview Lab → · Contrast checker → · Palette generator →

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