#A5228F#A5228F

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

Color values

HEX#A5228F
RGBrgb(165, 34, 143)
HSLhsl(310, 66%, 39%)
HSVhsv(310, 79%, 65%)
CMYKcmyk(0%, 79.4%, 13.3%, 35.3%)
CIE-LABlab(39.80, 62.00, -29.48)
CIE-LCHlch(39.80, 68.65, 334.57°)
OKLaboklab(50.75% 0.1822 -0.0805)
OKLCHoklch(50.75% 0.199 336.2)
XYZxyz(21.0474, 11.1285, 27.0208)
Luminance0.1113 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5228F #22A538
analogous
#7A22A5 #A5228F #A5224E
triadic
#A5228F #8FA522 #228FA5
tetradic
#A5228F #A57A22 #22A538 #224EA5
square
#A5228F #A57A22 #22A538 #224EA5
split-complementary
#A5228F #4EA522 #22A57A
monochromatic
#400D37 #721863 #A5228F #D430B9 #DF63CA

Accessibility & contrast

On white

6.51
#A5228F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#A5228F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A5228F
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5228F#FFFFFF#000000##FFFFFF
##A5228F1.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245192
Deuteranopia (green-blind)
#54658C
Tritanopia (blue-blind)
#AE2D57
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a5228f;
/* rgb */ color: rgb(165, 34, 143);
/* oklch */ color: oklch(50.7% 0.199 336.2);
Tailwind
colors: {
  custom: {
    50: '#c46db0',
    500: '#a5228f',
    950: '#000000',
  },
}
SCSS
$custom: #a5228f;
$custom-light: #c46db0;
$custom-dark: #000000;
JSON
{
  "hex": "#a5228f",
  "rgb": {
    "r": 165,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 310.076,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.5075,
    "c": 0.19914,
    "h": 336.2
  },
  "luminance": 0.11127
}

Semantic roles & 50–950 ramp

primary
#A5228F
secondary
#5FC470
accent
#E95C3F
background
#FCF7FA
surface
#F8EDF5
border
#D1C8CF
text
#130810
muted
#827B7F

Preview Lab

Preview with #A5228F

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

Preview Lab → · Contrast checker → · Palette generator →

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