#A7228E#A7228E

#A7228E is a mid, vivid pink. Relative luminance 0.113; OKLCH L 51.0% C 0.200 H 337.2°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#A7228E
RGBrgb(167, 34, 142)
HSLhsl(311, 66%, 39%)
HSVhsv(311, 80%, 65%)
CMYKcmyk(0%, 79.6%, 15%, 34.5%)
CIE-LABlab(40.11, 62.30, -28.36)
CIE-LCHlch(40.11, 68.46, 335.52°)
OKLaboklab(51.02% 0.184 -0.0772)
OKLCHoklch(51.02% 0.2 337.2)
XYZxyz(21.3913, 11.3146, 26.6433)
Luminance0.1131 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7228E #22A73B
analogous
#7E22A7 #A7228E #A7224C
triadic
#A7228E #8EA722 #228EA7
tetradic
#A7228E #A77E22 #22A73B #224CA7
square
#A7228E #A77E22 #22A73B #224CA7
split-complementary
#A7228E #4CA722 #22A77E
monochromatic
#410D38 #741863 #A7228E #D531B6 #DF64C8

Accessibility & contrast

On white

6.44
#A7228E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#A7228E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A7228E
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7228E#FFFFFF#000000##FFFFFF
##A7228E1.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275291
Deuteranopia (green-blind)
#56668B
Tritanopia (blue-blind)
#B02B57
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a7228e;
/* rgb */ color: rgb(167, 34, 142);
/* oklch */ color: oklch(51.0% 0.200 337.2);
Tailwind
colors: {
  custom: {
    50: '#c56eaf',
    500: '#a7228e',
    950: '#000000',
  },
}
SCSS
$custom: #a7228e;
$custom-light: #c56eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#a7228e",
  "rgb": {
    "r": 167,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 311.278,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.51022,
    "c": 0.19955,
    "h": 337.2
  },
  "luminance": 0.11313
}

Semantic roles & 50–950 ramp

primary
#A7228E
secondary
#60C573
accent
#E95F3F
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A7228E

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

Preview Lab → · Contrast checker → · Palette generator →

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