#A7227B#A7227B

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

Color values

HEX#A7227B
RGBrgb(167, 34, 123)
HSLhsl(320, 66%, 39%)
HSVhsv(320, 80%, 65%)
CMYKcmyk(0%, 79.6%, 26.3%, 34.5%)
CIE-LABlab(39.23, 59.76, -18.01)
CIE-LCHlch(39.23, 62.42, 343.23°)
OKLaboklab(50.1% 0.1814 -0.0479)
OKLCHoklch(50.1% 0.188 345.2)
XYZxyz(20.0844, 10.7919, 19.7604)
Luminance0.1079 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7227B #22A74E
analogous
#9122A7 #A7227B #A72238
triadic
#A7227B #7BA722 #227BA7
tetradic
#A7227B #A79122 #22A74E #2238A7
square
#A7227B #A79122 #22A74E #2238A7
split-complementary
#A7227B #38A722 #22A791
monochromatic
#410D30 #741856 #A7227B #D5319F #DF64B7

Accessibility & contrast

On white

6.65
#A7227B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A7227B
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7227B#FFFFFF#000000##FFFFFF
##A7227B1.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#354E7D
Deuteranopia (green-blind)
#5D6478
Tritanopia (blue-blind)
#B31F4C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a7227b;
/* rgb */ color: rgb(167, 34, 123);
/* oklch */ color: oklch(50.1% 0.188 345.2);
Tailwind
colors: {
  custom: {
    50: '#c56da1',
    500: '#a7227b',
    950: '#000000',
  },
}
SCSS
$custom: #a7227b;
$custom-light: #c56da1;
$custom-dark: #000000;
JSON
{
  "hex": "#a7227b",
  "rgb": {
    "r": 167,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 319.85,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.50104,
    "c": 0.18764,
    "h": 345.2
  },
  "luminance": 0.1079
}

Semantic roles & 50–950 ramp

primary
#A7227B
secondary
#60C581
accent
#E9773F
background
#FCF7F9
surface
#F9EDF2
border
#D2C8CC
text
#14080F
muted
#827B7E

Preview Lab

Preview with #A7227B

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

Preview Lab → · Contrast checker → · Palette generator →

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