#A5227B#A5227B

#A5227B is a mid, vivid pink. Relative luminance 0.106; OKLCH L 49.8% C 0.186 H 344.5°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#A5227B
RGBrgb(165, 34, 123)
HSLhsl(319, 66%, 39%)
HSVhsv(319, 79%, 65%)
CMYKcmyk(0%, 79.4%, 25.5%, 35.3%)
CIE-LABlab(38.86, 59.28, -18.62)
CIE-LCHlch(38.86, 62.13, 342.56°)
OKLaboklab(49.77% 0.1796 -0.0496)
OKLCHoklch(49.77% 0.186 344.5)
XYZxyz(19.6651, 10.5756, 19.7407)
Luminance0.1057 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5227B #22A54C
analogous
#8E22A5 #A5227B #A52239
triadic
#A5227B #7BA522 #227BA5
tetradic
#A5227B #A58E22 #22A54C #2239A5
square
#A5227B #A58E22 #22A54C #2239A5
split-complementary
#A5227B #39A522 #22A58E
monochromatic
#400D2F #721855 #A5227B #D430A0 #DF63B7

Accessibility & contrast

On white

6.74
#A5227B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#A5227B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A5227B
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5227B#FFFFFF#000000##FFFFFF
##A5227B1.006.743.116.74
#FFFFFF6.741.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334E7D
Deuteranopia (green-blind)
#5C6378
Tritanopia (blue-blind)
#B0204C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #a5227b;
/* rgb */ color: rgb(165, 34, 123);
/* oklch */ color: oklch(49.8% 0.186 344.5);
Tailwind
colors: {
  custom: {
    50: '#c46ca1',
    500: '#a5227b',
    950: '#000000',
  },
}
SCSS
$custom: #a5227b;
$custom-light: #c46ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#a5227b",
  "rgb": {
    "r": 165,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 319.237,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.49766,
    "c": 0.18636,
    "h": 344.5
  },
  "luminance": 0.10573
}

Semantic roles & 50–950 ramp

primary
#A5227B
secondary
#5FC47F
accent
#E9753F
background
#FCF7F9
surface
#F8EDF2
border
#D1C8CC
text
#13080F
muted
#827B7E

Preview Lab

Preview with #A5227B

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

Preview Lab → · Contrast checker → · Palette generator →

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