#A5228A#A5228A

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

Color values

HEX#A5228A
RGBrgb(165, 34, 138)
HSLhsl(312, 66%, 39%)
HSVhsv(312, 79%, 65%)
CMYKcmyk(0%, 79.4%, 16.4%, 35.3%)
CIE-LABlab(39.55, 61.28, -26.81)
CIE-LCHlch(39.55, 66.89, 336.37°)
OKLaboklab(50.49% 0.1817 -0.0728)
OKLCHoklch(50.49% 0.196 338.2)
XYZxyz(20.6770, 10.9804, 25.0703)
Luminance0.1098 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5228A #22A53D
analogous
#7F22A5 #A5228A #A52249
triadic
#A5228A #8AA522 #228AA5
tetradic
#A5228A #A57F22 #22A53D #2249A5
square
#A5228A #A57F22 #22A53D #2249A5
split-complementary
#A5228A #49A522 #22A57F
monochromatic
#400D35 #721860 #A5228A #D430B2 #DF63C5

Accessibility & contrast

On white

6.57
#A5228A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A5228A
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5228A#FFFFFF#000000##FFFFFF
##A5228A1.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29508D
Deuteranopia (green-blind)
#566487
Tritanopia (blue-blind)
#AE2A55
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #a5228a;
/* rgb */ color: rgb(165, 34, 138);
/* oklch */ color: oklch(50.5% 0.196 338.2);
Tailwind
colors: {
  custom: {
    50: '#c46dac',
    500: '#a5228a',
    950: '#000000',
  },
}
SCSS
$custom: #a5228a;
$custom-light: #c46dac;
$custom-dark: #000000;
JSON
{
  "hex": "#a5228a",
  "rgb": {
    "r": 165,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 312.366,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.5049,
    "c": 0.19578,
    "h": 338.2
  },
  "luminance": 0.10978
}

Semantic roles & 50–950 ramp

primary
#A5228A
secondary
#5FC474
accent
#E9623F
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A5228A

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

Preview Lab → · Contrast checker → · Palette generator →

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