#A5227A#A5227A

#A5227A is a mid, vivid pink. Relative luminance 0.105; OKLCH L 49.7% C 0.186 H 345.0°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#A5227A
RGBrgb(165, 34, 122)
HSLhsl(320, 66%, 39%)
HSVhsv(320, 79%, 65%)
CMYKcmyk(0%, 79.4%, 26.1%, 35.3%)
CIE-LABlab(38.81, 59.15, -18.06)
CIE-LCHlch(38.81, 61.85, 343.02°)
OKLaboklab(49.72% 0.1794 -0.0481)
OKLCHoklch(49.72% 0.186 345)
XYZxyz(19.6028, 10.5507, 19.4127)
Luminance0.1055 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5227A #22A54D
analogous
#8F22A5 #A5227A #A52238
triadic
#A5227A #7AA522 #227AA5
tetradic
#A5227A #A58F22 #22A54D #2238A5
square
#A5227A #A58F22 #22A54D #2238A5
split-complementary
#A5227A #38A522 #22A58F
monochromatic
#400D2F #721854 #A5227A #D4309E #DF63B6

Accessibility & contrast

On white

6.75
#A5227A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A5227A
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5227A#FFFFFF#000000##FFFFFF
##A5227A1.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#344D7C
Deuteranopia (green-blind)
#5C6377
Tritanopia (blue-blind)
#B0204C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #a5227a;
/* rgb */ color: rgb(165, 34, 122);
/* oklch */ color: oklch(49.7% 0.186 345.0);
Tailwind
colors: {
  custom: {
    50: '#c46ca0',
    500: '#a5227a',
    950: '#000000',
  },
}
SCSS
$custom: #a5227a;
$custom-light: #c46ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#a5227a",
  "rgb": {
    "r": 165,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 319.695,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.49721,
    "c": 0.18577,
    "h": 345
  },
  "luminance": 0.10549
}

Semantic roles & 50–950 ramp

primary
#A5227A
secondary
#5FC480
accent
#E9773F
background
#FCF7F9
surface
#F8EDF2
border
#D1C8CC
text
#13080E
muted
#827B7E

Preview Lab

Preview with #A5227A

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

Preview Lab → · Contrast checker → · Palette generator →

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