#A5228C#A5228C

#A5228C is a mid, vivid pink. Relative luminance 0.110; OKLCH L 50.6% C 0.197 H 337.4°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#A5228C
RGBrgb(165, 34, 140)
HSLhsl(311, 66%, 39%)
HSVhsv(311, 79%, 65%)
CMYKcmyk(0%, 79.4%, 15.2%, 35.3%)
CIE-LABlab(39.65, 61.57, -27.88)
CIE-LCHlch(39.65, 67.59, 335.63°)
OKLaboklab(50.59% 0.1819 -0.0759)
OKLCHoklch(50.59% 0.197 337.4)
XYZxyz(20.8231, 11.0388, 25.8399)
Luminance0.1104 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5228C #22A53B
analogous
#7D22A5 #A5228C #A5224B
triadic
#A5228C #8CA522 #228CA5
tetradic
#A5228C #A57D22 #22A53B #224BA5
square
#A5228C #A57D22 #22A53B #224BA5
split-complementary
#A5228C #4BA522 #22A57D
monochromatic
#400D36 #721861 #A5228C #D430B5 #DF63C7

Accessibility & contrast

On white

6.55
#A5228C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#A5228C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A5228C
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5228C#FFFFFF#000000##FFFFFF
##A5228C1.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27518F
Deuteranopia (green-blind)
#566489
Tritanopia (blue-blind)
#AE2B56
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #a5228c;
/* rgb */ color: rgb(165, 34, 140);
/* oklch */ color: oklch(50.6% 0.197 337.4);
Tailwind
colors: {
  custom: {
    50: '#c46dae',
    500: '#a5228c',
    950: '#000000',
  },
}
SCSS
$custom: #a5228c;
$custom-light: #c46dae;
$custom-dark: #000000;
JSON
{
  "hex": "#a5228c",
  "rgb": {
    "r": 165,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 311.45,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.50593,
    "c": 0.19711,
    "h": 337.4
  },
  "luminance": 0.11037
}

Semantic roles & 50–950 ramp

primary
#A5228C
secondary
#5FC472
accent
#E95F3F
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A5228C

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

Preview Lab → · Contrast checker → · Palette generator →

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