#A5228E#A5228E

#A5228E is a mid, vivid pink. Relative luminance 0.111; OKLCH L 50.7% C 0.198 H 336.6°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#A5228E
RGBrgb(165, 34, 142)
HSLhsl(311, 66%, 39%)
HSVhsv(311, 79%, 65%)
CMYKcmyk(0%, 79.4%, 13.9%, 35.3%)
CIE-LABlab(39.75, 61.85, -28.95)
CIE-LCHlch(39.75, 68.29, 334.92°)
OKLaboklab(50.7% 0.1821 -0.0789)
OKLCHoklch(50.7% 0.198 336.6)
XYZxyz(20.9720, 11.0984, 26.6236)
Luminance0.1110 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5228E #22A539
analogous
#7B22A5 #A5228E #A5224D
triadic
#A5228E #8EA522 #228EA5
tetradic
#A5228E #A57B22 #22A539 #224DA5
square
#A5228E #A57B22 #22A539 #224DA5
split-complementary
#A5228E #4DA522 #22A57B
monochromatic
#400D37 #721862 #A5228E #D430B7 #DF63C9

Accessibility & contrast

On white

6.52
#A5228E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#A5228E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A5228E
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5228E#FFFFFF#000000##FFFFFF
##A5228E1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255191
Deuteranopia (green-blind)
#55658B
Tritanopia (blue-blind)
#AE2C57
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a5228e;
/* rgb */ color: rgb(165, 34, 142);
/* oklch */ color: oklch(50.7% 0.198 336.6);
Tailwind
colors: {
  custom: {
    50: '#c46daf',
    500: '#a5228e',
    950: '#000000',
  },
}
SCSS
$custom: #a5228e;
$custom-light: #c46daf;
$custom-dark: #000000;
JSON
{
  "hex": "#a5228e",
  "rgb": {
    "r": 165,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 310.534,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.50697,
    "c": 0.19846,
    "h": 336.6
  },
  "luminance": 0.11096
}

Semantic roles & 50–950 ramp

primary
#A5228E
secondary
#5FC471
accent
#E95D3F
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A5228E

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

Preview Lab → · Contrast checker → · Palette generator →

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