#A7227C#A7227C

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

Color values

HEX#A7227C
RGBrgb(167, 34, 124)
HSLhsl(319, 66%, 39%)
HSVhsv(319, 80%, 65%)
CMYKcmyk(0%, 79.6%, 25.7%, 34.5%)
CIE-LABlab(39.27, 59.89, -18.57)
CIE-LCHlch(39.27, 62.70, 342.77°)
OKLaboklab(50.15% 0.1816 -0.0495)
OKLCHoklch(50.15% 0.188 344.8)
XYZxyz(20.1473, 10.8170, 20.0918)
Luminance0.1081 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7227C #22A74D
analogous
#8F22A7 #A7227C #A7223A
triadic
#A7227C #7CA722 #227CA7
tetradic
#A7227C #A78F22 #22A74D #223AA7
square
#A7227C #A78F22 #22A74D #223AA7
split-complementary
#A7227C #3AA722 #22A78F
monochromatic
#410D30 #741856 #A7227C #D531A0 #DF64B8

Accessibility & contrast

On white

6.64
#A7227C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#A7227C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A7227C
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7227C#FFFFFF#000000##FFFFFF
##A7227C1.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#344E7E
Deuteranopia (green-blind)
#5D6479
Tritanopia (blue-blind)
#B2204D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a7227c;
/* rgb */ color: rgb(167, 34, 124);
/* oklch */ color: oklch(50.1% 0.188 344.8);
Tailwind
colors: {
  custom: {
    50: '#c56da2',
    500: '#a7227c',
    950: '#000000',
  },
}
SCSS
$custom: #a7227c;
$custom-light: #c56da2;
$custom-dark: #000000;
JSON
{
  "hex": "#a7227c",
  "rgb": {
    "r": 167,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 319.398,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.50149,
    "c": 0.18821,
    "h": 344.8
  },
  "luminance": 0.10815
}

Semantic roles & 50–950 ramp

primary
#A7227C
secondary
#60C581
accent
#E9763F
background
#FCF7F9
surface
#F9EDF2
border
#D2C8CC
text
#13080F
muted
#827B7E

Preview Lab

Preview with #A7227C

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

Preview Lab → · Contrast checker → · Palette generator →

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