#A5228B#A5228B

#A5228B is a mid, vivid pink. Relative luminance 0.110; OKLCH L 50.5% C 0.196 H 337.8°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#A5228B
RGBrgb(165, 34, 139)
HSLhsl(312, 66%, 39%)
HSVhsv(312, 79%, 65%)
CMYKcmyk(0%, 79.4%, 15.8%, 35.3%)
CIE-LABlab(39.60, 61.43, -27.35)
CIE-LCHlch(39.60, 67.24, 336.00°)
OKLaboklab(50.54% 0.1818 -0.0744)
OKLCHoklch(50.54% 0.196 337.8)
XYZxyz(20.7497, 11.0095, 25.4533)
Luminance0.1101 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5228B #22A53C
analogous
#7E22A5 #A5228B #A5224A
triadic
#A5228B #8BA522 #228BA5
tetradic
#A5228B #A57E22 #22A53C #224AA5
square
#A5228B #A57E22 #22A53C #224AA5
split-complementary
#A5228B #4AA522 #22A57E
monochromatic
#400D36 #721860 #A5228B #D430B4 #DF63C6

Accessibility & contrast

On white

6.56
#A5228B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#A5228B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A5228B
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5228B#FFFFFF#000000##FFFFFF
##A5228B1.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28518E
Deuteranopia (green-blind)
#566488
Tritanopia (blue-blind)
#AE2A55
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #a5228b;
/* rgb */ color: rgb(165, 34, 139);
/* oklch */ color: oklch(50.5% 0.196 337.8);
Tailwind
colors: {
  custom: {
    50: '#c46dad',
    500: '#a5228b',
    950: '#000000',
  },
}
SCSS
$custom: #a5228b;
$custom-light: #c46dad;
$custom-dark: #000000;
JSON
{
  "hex": "#a5228b",
  "rgb": {
    "r": 165,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 311.908,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.50541,
    "c": 0.19644,
    "h": 337.8
  },
  "luminance": 0.11007
}

Semantic roles & 50–950 ramp

primary
#A5228B
secondary
#5FC473
accent
#E9613F
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A5228B

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

Preview Lab → · Contrast checker → · Palette generator →

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