#A7228A#A7228A

#A7228A is a mid, vivid pink. Relative luminance 0.112; OKLCH L 50.8% C 0.197 H 338.8°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#A7228A
RGBrgb(167, 34, 138)
HSLhsl(313, 66%, 39%)
HSVhsv(313, 80%, 65%)
CMYKcmyk(0%, 79.6%, 17.4%, 34.5%)
CIE-LABlab(39.91, 61.74, -26.22)
CIE-LCHlch(39.91, 67.08, 336.99°)
OKLaboklab(50.82% 0.1836 -0.0711)
OKLCHoklch(50.82% 0.197 338.8)
XYZxyz(21.0964, 11.1966, 25.0900)
Luminance0.1119 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7228A #22A73F
analogous
#8222A7 #A7228A #A72247
triadic
#A7228A #8AA722 #228AA7
tetradic
#A7228A #A78222 #22A73F #2247A7
square
#A7228A #A78222 #22A73F #2247A7
split-complementary
#A7228A #47A722 #22A782
monochromatic
#410D36 #741860 #A7228A #D531B1 #DF64C5

Accessibility & contrast

On white

6.48
#A7228A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#A7228A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A7228A
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7228A#FFFFFF#000000##FFFFFF
##A7228A1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A518D
Deuteranopia (green-blind)
#586587
Tritanopia (blue-blind)
#B12955
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a7228a;
/* rgb */ color: rgb(167, 34, 138);
/* oklch */ color: oklch(50.8% 0.197 338.8);
Tailwind
colors: {
  custom: {
    50: '#c56dac',
    500: '#a7228a',
    950: '#000000',
  },
}
SCSS
$custom: #a7228a;
$custom-light: #c56dac;
$custom-dark: #000000;
JSON
{
  "hex": "#a7228a",
  "rgb": {
    "r": 167,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 313.083,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.50818,
    "c": 0.1969,
    "h": 338.8
  },
  "luminance": 0.11195
}

Semantic roles & 50–950 ramp

primary
#A7228A
secondary
#60C576
accent
#E9643F
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A7228A

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

Preview Lab → · Contrast checker → · Palette generator →

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