#A7227E#A7227E

#A7227E is a mid, vivid pink. Relative luminance 0.109; OKLCH L 50.2% C 0.189 H 343.9°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#A7227E
RGBrgb(167, 34, 126)
HSLhsl(318, 66%, 39%)
HSVhsv(318, 80%, 65%)
CMYKcmyk(0%, 79.6%, 24.6%, 34.5%)
CIE-LABlab(39.36, 60.14, -19.68)
CIE-LCHlch(39.36, 63.28, 341.88°)
OKLaboklab(50.24% 0.182 -0.0526)
OKLCHoklch(50.24% 0.189 343.9)
XYZxyz(20.2751, 10.8681, 20.7646)
Luminance0.1087 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7227E #22A74B
analogous
#8E22A7 #A7227E #A7223C
triadic
#A7227E #7EA722 #227EA7
tetradic
#A7227E #A78E22 #22A74B #223CA7
square
#A7227E #A78E22 #22A74B #223CA7
split-complementary
#A7227E #3CA722 #22A78E
monochromatic
#410D31 #741858 #A7227E #D531A3 #DF64B9

Accessibility & contrast

On white

6.62
#A7227E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#A7227E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A7227E
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7227E#FFFFFF#000000##FFFFFF
##A7227E1.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334F80
Deuteranopia (green-blind)
#5C657B
Tritanopia (blue-blind)
#B2214E
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #a7227e;
/* rgb */ color: rgb(167, 34, 126);
/* oklch */ color: oklch(50.2% 0.189 343.9);
Tailwind
colors: {
  custom: {
    50: '#c56da3',
    500: '#a7227e',
    950: '#000000',
  },
}
SCSS
$custom: #a7227e;
$custom-light: #c56da3;
$custom-dark: #000000;
JSON
{
  "hex": "#a7227e",
  "rgb": {
    "r": 167,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 318.496,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.5024,
    "c": 0.1894,
    "h": 343.9
  },
  "luminance": 0.10866
}

Semantic roles & 50–950 ramp

primary
#A7227E
secondary
#60C57F
accent
#E9733F
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#13080F
muted
#827B7F

Preview Lab

Preview with #A7227E

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

Preview Lab → · Contrast checker → · Palette generator →

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