#A5227D#A5227D

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

Color values

HEX#A5227D
RGBrgb(165, 34, 125)
HSLhsl(318, 66%, 39%)
HSVhsv(318, 79%, 65%)
CMYKcmyk(0%, 79.4%, 24.2%, 35.3%)
CIE-LABlab(38.94, 59.53, -19.72)
CIE-LCHlch(38.94, 62.72, 341.67°)
OKLaboklab(49.86% 0.18 -0.0527)
OKLCHoklch(49.86% 0.188 343.7)
XYZxyz(19.7916, 10.6262, 20.4068)
Luminance0.1062 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5227D #22A54A
analogous
#8C22A5 #A5227D #A5223B
triadic
#A5227D #7DA522 #227DA5
tetradic
#A5227D #A58C22 #22A54A #223BA5
square
#A5227D #A58C22 #22A54A #223BA5
split-complementary
#A5227D #3BA522 #22A58C
monochromatic
#400D30 #721857 #A5227D #D430A2 #DF63B9

Accessibility & contrast

On white

6.72
#A5227D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#A5227D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A5227D
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5227D#FFFFFF#000000##FFFFFF
##A5227D1.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324E7F
Deuteranopia (green-blind)
#5B637A
Tritanopia (blue-blind)
#B0224D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a5227d;
/* rgb */ color: rgb(165, 34, 125);
/* oklch */ color: oklch(49.9% 0.188 343.7);
Tailwind
colors: {
  custom: {
    50: '#c46da2',
    500: '#a5227d',
    950: '#000000',
  },
}
SCSS
$custom: #a5227d;
$custom-light: #c46da2;
$custom-dark: #000000;
JSON
{
  "hex": "#a5227d",
  "rgb": {
    "r": 165,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 318.321,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.49858,
    "c": 0.18754,
    "h": 343.7
  },
  "luminance": 0.10624
}

Semantic roles & 50–950 ramp

primary
#A5227D
secondary
#5FC47E
accent
#E9733F
background
#FCF7FA
surface
#F8EDF3
border
#D1C8CD
text
#13080F
muted
#827B7F

Preview Lab

Preview with #A5227D

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

Preview Lab → · Contrast checker → · Palette generator →

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