#A5227E#A5227E

#A5227E is a mid, vivid pink. Relative luminance 0.106; OKLCH L 49.9% C 0.188 H 343.2°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#A5227E
RGBrgb(165, 34, 126)
HSLhsl(318, 66%, 39%)
HSVhsv(318, 79%, 65%)
CMYKcmyk(0%, 79.4%, 23.6%, 35.3%)
CIE-LABlab(38.99, 59.66, -20.28)
CIE-LCHlch(38.99, 63.01, 341.23°)
OKLaboklab(49.91% 0.1801 -0.0543)
OKLCHoklch(49.91% 0.188 343.2)
XYZxyz(19.8558, 10.6519, 20.7450)
Luminance0.1065 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5227E #22A549
analogous
#8B22A5 #A5227E #A5223C
triadic
#A5227E #7EA522 #227EA5
tetradic
#A5227E #A58B22 #22A549 #223CA5
square
#A5227E #A58B22 #22A549 #223CA5
split-complementary
#A5227E #3CA522 #22A58B
monochromatic
#400D31 #721857 #A5227E #D430A3 #DF63BA

Accessibility & contrast

On white

6.71
#A5227E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#A5227E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A5227E
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5227E#FFFFFF#000000##FFFFFF
##A5227E1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324E80
Deuteranopia (green-blind)
#5B637B
Tritanopia (blue-blind)
#B0224E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a5227e;
/* rgb */ color: rgb(165, 34, 126);
/* oklch */ color: oklch(49.9% 0.188 343.2);
Tailwind
colors: {
  custom: {
    50: '#c46da3',
    500: '#a5227e',
    950: '#000000',
  },
}
SCSS
$custom: #a5227e;
$custom-light: #c46da3;
$custom-dark: #000000;
JSON
{
  "hex": "#a5227e",
  "rgb": {
    "r": 165,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 317.863,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.49905,
    "c": 0.18815,
    "h": 343.2
  },
  "luminance": 0.1065
}

Semantic roles & 50–950 ramp

primary
#A5227E
secondary
#5FC47D
accent
#E9723F
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#13080F
muted
#827B7F

Preview Lab

Preview with #A5227E

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

Preview Lab → · Contrast checker → · Palette generator →

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