#A7227F#A7227F

#A7227F is a mid, vivid pink. Relative luminance 0.109; OKLCH L 50.3% C 0.190 H 343.4°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#A7227F
RGBrgb(167, 34, 127)
HSLhsl(318, 66%, 39%)
HSVhsv(318, 80%, 65%)
CMYKcmyk(0%, 79.6%, 24%, 34.5%)
CIE-LABlab(39.40, 60.27, -20.23)
CIE-LCHlch(39.40, 63.58, 341.45°)
OKLaboklab(50.29% 0.1821 -0.0541)
OKLCHoklch(50.29% 0.19 343.4)
XYZxyz(20.3400, 10.8941, 21.1062)
Luminance0.1089 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7227F #22A74A
analogous
#8D22A7 #A7227F #A7223D
triadic
#A7227F #7FA722 #227FA7
tetradic
#A7227F #A78D22 #22A74A #223DA7
square
#A7227F #A78D22 #22A74A #223DA7
split-complementary
#A7227F #3DA722 #22A78D
monochromatic
#410D32 #741858 #A7227F #D531A4 #DF64BA

Accessibility & contrast

On white

6.61
#A7227F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#A7227F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A7227F
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7227F#FFFFFF#000000##FFFFFF
##A7227F1.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324F81
Deuteranopia (green-blind)
#5C657C
Tritanopia (blue-blind)
#B2224F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #a7227f;
/* rgb */ color: rgb(167, 34, 127);
/* oklch */ color: oklch(50.3% 0.190 343.4);
Tailwind
colors: {
  custom: {
    50: '#c56da4',
    500: '#a7227f',
    950: '#000000',
  },
}
SCSS
$custom: #a7227f;
$custom-light: #c56da4;
$custom-dark: #000000;
JSON
{
  "hex": "#a7227f",
  "rgb": {
    "r": 167,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 318.045,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.50286,
    "c": 0.19,
    "h": 343.4
  },
  "luminance": 0.10892
}

Semantic roles & 50–950 ramp

primary
#A7227F
secondary
#60C57E
accent
#E9723F
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#13080F
muted
#827B7F

Preview Lab

Preview with #A7227F

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

Preview Lab → · Contrast checker → · Palette generator →

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