#A7228F#A7228F

#A7228F is a mid, highly saturated pink. Relative luminance 0.113; OKLCH L 51.1% C 0.200 H 336.8°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#A7228F
RGBrgb(167, 34, 143)
HSLhsl(311, 66%, 39%)
HSVhsv(311, 80%, 65%)
CMYKcmyk(0%, 79.6%, 14.4%, 34.5%)
CIE-LABlab(40.16, 62.45, -28.89)
CIE-LCHlch(40.16, 68.81, 335.17°)
OKLaboklab(51.07% 0.1841 -0.0787)
OKLCHoklch(51.07% 0.2 336.8)
XYZxyz(21.4667, 11.3448, 27.0405)
Luminance0.1134 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7228F #22A73A
analogous
#7D22A7 #A7228F #A7224D
triadic
#A7228F #8FA722 #228FA7
tetradic
#A7228F #A77D22 #22A73A #224DA7
square
#A7228F #A77D22 #22A73A #224DA7
split-complementary
#A7228F #4DA722 #22A77D
monochromatic
#410D38 #741863 #A7228F #D531B7 #DF64C9

Accessibility & contrast

On white

6.42
#A7228F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#A7228F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A7228F
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7228F#FFFFFF#000000##FFFFFF
##A7228F1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265292
Deuteranopia (green-blind)
#56668C
Tritanopia (blue-blind)
#B02C57
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a7228f;
/* rgb */ color: rgb(167, 34, 143);
/* oklch */ color: oklch(51.1% 0.200 336.8);
Tailwind
colors: {
  custom: {
    50: '#c56eb0',
    500: '#a7228f',
    950: '#000000',
  },
}
SCSS
$custom: #a7228f;
$custom-light: #c56eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#a7228f",
  "rgb": {
    "r": 167,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 310.827,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.51074,
    "c": 0.20022,
    "h": 336.8
  },
  "luminance": 0.11343
}

Semantic roles & 50–950 ramp

primary
#A7228F
secondary
#60C572
accent
#E95D3F
background
#FCF7FA
surface
#F9EDF5
border
#D2C8CF
text
#130810
muted
#827B7F

Preview Lab

Preview with #A7228F

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

Preview Lab → · Contrast checker → · Palette generator →

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