#AA228F#AA228F

#AA228F is a mid, highly saturated pink. Relative luminance 0.117; OKLCH L 51.6% C 0.202 H 337.8°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#AA228F
RGBrgb(170, 34, 143)
HSLhsl(312, 67%, 40%)
HSVhsv(312, 80%, 67%)
CMYKcmyk(0%, 80%, 15.9%, 33.3%)
CIE-LABlab(40.70, 63.12, -28.01)
CIE-LCHlch(40.70, 69.05, 336.07°)
OKLaboklab(51.56% 0.1869 -0.0761)
OKLCHoklch(51.56% 0.202 337.8)
XYZxyz(22.1080, 11.6754, 27.0705)
Luminance0.1167 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA228F #22AA3D
analogous
#8122AA #AA228F #AA224B
triadic
#AA228F #8FAA22 #228FAA
tetradic
#AA228F #AA8122 #22AA3D #224BAA
square
#AA228F #AA8122 #22AA3D #224BAA
split-complementary
#AA228F #4BAA22 #22AA81
monochromatic
#440E39 #771864 #AA228F #D633B6 #E066C8

Accessibility & contrast

On white

6.30
#AA228F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#AA228F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA228F
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA228F#FFFFFF#000000##FFFFFF
##AA228F1.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295392
Deuteranopia (green-blind)
#59678C
Tritanopia (blue-blind)
#B42B57
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #aa228f;
/* rgb */ color: rgb(170, 34, 143);
/* oklch */ color: oklch(51.6% 0.202 337.8);
Tailwind
colors: {
  custom: {
    50: '#c76eb0',
    500: '#aa228f',
    950: '#000000',
  },
}
SCSS
$custom: #aa228f;
$custom-light: #c76eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#aa228f",
  "rgb": {
    "r": 170,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 311.912,
    "s": 66.667,
    "l": 40
  },
  "oklch": {
    "l": 0.51563,
    "c": 0.20185,
    "h": 337.8
  },
  "luminance": 0.11673
}

Semantic roles & 50–950 ramp

primary
#AA228F
secondary
#62C676
accent
#EA603E
background
#FCF7FA
surface
#F9EDF5
border
#D2C8CF
text
#140810
muted
#827B7F

Preview Lab

Preview with #AA228F

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

Preview Lab → · Contrast checker → · Palette generator →

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