#A7228D#A7228D

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

Color values

HEX#A7228D
RGBrgb(167, 34, 141)
HSLhsl(312, 66%, 39%)
HSVhsv(312, 80%, 65%)
CMYKcmyk(0%, 79.6%, 15.6%, 34.5%)
CIE-LABlab(40.06, 62.16, -27.83)
CIE-LCHlch(40.06, 68.11, 335.88°)
OKLaboklab(50.97% 0.1839 -0.0757)
OKLCHoklch(50.97% 0.199 337.6)
XYZxyz(21.3166, 11.2847, 26.2497)
Luminance0.1128 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7228D #22A73C
analogous
#7E22A7 #A7228D #A7224B
triadic
#A7228D #8DA722 #228DA7
tetradic
#A7228D #A77E22 #22A73C #224BA7
square
#A7228D #A77E22 #22A73C #224BA7
split-complementary
#A7228D #4BA722 #22A77E
monochromatic
#410D37 #741862 #A7228D #D531B5 #DF64C7

Accessibility & contrast

On white

6.45
#A7228D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A7228D
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7228D#FFFFFF#000000##FFFFFF
##A7228D1.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285190
Deuteranopia (green-blind)
#57668A
Tritanopia (blue-blind)
#B02B56
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a7228d;
/* rgb */ color: rgb(167, 34, 141);
/* oklch */ color: oklch(51.0% 0.199 337.6);
Tailwind
colors: {
  custom: {
    50: '#c56dae',
    500: '#a7228d',
    950: '#000000',
  },
}
SCSS
$custom: #a7228d;
$custom-light: #c56dae;
$custom-dark: #000000;
JSON
{
  "hex": "#a7228d",
  "rgb": {
    "r": 167,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 311.729,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.50971,
    "c": 0.19888,
    "h": 337.6
  },
  "luminance": 0.11283
}

Semantic roles & 50–950 ramp

primary
#A7228D
secondary
#60C574
accent
#E9603F
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A7228D

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

Preview Lab → · Contrast checker → · Palette generator →

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