#A7227A#A7227A

#A7227A is a mid, vivid pink. Relative luminance 0.108; OKLCH L 50.1% C 0.187 H 345.6°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#A7227A
RGBrgb(167, 34, 122)
HSLhsl(320, 66%, 39%)
HSVhsv(320, 80%, 65%)
CMYKcmyk(0%, 79.6%, 26.9%, 34.5%)
CIE-LABlab(39.19, 59.64, -17.46)
CIE-LCHlch(39.19, 62.14, 343.68°)
OKLaboklab(50.06% 0.1812 -0.0464)
OKLCHoklch(50.06% 0.187 345.6)
XYZxyz(20.0222, 10.7669, 19.4324)
Luminance0.1076 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7227A #22A74F
analogous
#9222A7 #A7227A #A72237
triadic
#A7227A #7AA722 #227AA7
tetradic
#A7227A #A79222 #22A74F #2237A7
square
#A7227A #A79222 #22A74F #2237A7
split-complementary
#A7227A #37A722 #22A792
monochromatic
#410D30 #741855 #A7227A #D5319E #DF64B6

Accessibility & contrast

On white

6.66
#A7227A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#A7227A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A7227A
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7227A#FFFFFF#000000##FFFFFF
##A7227A1.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#354E7C
Deuteranopia (green-blind)
#5E6477
Tritanopia (blue-blind)
#B31E4C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a7227a;
/* rgb */ color: rgb(167, 34, 122);
/* oklch */ color: oklch(50.1% 0.187 345.6);
Tailwind
colors: {
  custom: {
    50: '#c56da0',
    500: '#a7227a',
    950: '#000000',
  },
}
SCSS
$custom: #a7227a;
$custom-light: #c56da0;
$custom-dark: #000000;
JSON
{
  "hex": "#a7227a",
  "rgb": {
    "r": 167,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 320.301,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.50059,
    "c": 0.18706,
    "h": 345.6
  },
  "luminance": 0.10765
}

Semantic roles & 50–950 ramp

primary
#A7227A
secondary
#60C582
accent
#E9783F
background
#FCF7F9
surface
#F9EDF2
border
#D2C8CC
text
#14080E
muted
#827B7E

Preview Lab

Preview with #A7227A

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

Preview Lab → · Contrast checker → · Palette generator →

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