#A8228A#A8228A

#A8228A is a mid, vivid pink. Relative luminance 0.113; OKLCH L 51.0% C 0.197 H 339.2°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#A8228A
RGBrgb(168, 34, 138)
HSLhsl(313, 66%, 40%)
HSVhsv(313, 80%, 66%)
CMYKcmyk(0%, 79.8%, 17.9%, 34.1%)
CIE-LABlab(40.09, 61.97, -25.92)
CIE-LCHlch(40.09, 67.18, 337.30°)
OKLaboklab(50.98% 0.1846 -0.0702)
OKLCHoklch(50.98% 0.197 339.2)
XYZxyz(21.3085, 11.3060, 25.0999)
Luminance0.1130 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8228A #22A840
analogous
#8322A8 #A8228A #A82247
triadic
#A8228A #8AA822 #228AA8
tetradic
#A8228A #A88322 #22A840 #2247A8
square
#A8228A #A88322 #22A840 #2247A8
split-complementary
#A8228A #47A822 #22A883
monochromatic
#420D36 #751860 #A8228A #D532B1 #E065C4

Accessibility & contrast

On white

6.44
#A8228A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#A8228A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A8228A
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8228A#FFFFFF#000000##FFFFFF
##A8228A1.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B518D
Deuteranopia (green-blind)
#596687
Tritanopia (blue-blind)
#B22955
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a8228a;
/* rgb */ color: rgb(168, 34, 138);
/* oklch */ color: oklch(51.0% 0.197 339.2);
Tailwind
colors: {
  custom: {
    50: '#c66dac',
    500: '#a8228a',
    950: '#000000',
  },
}
SCSS
$custom: #a8228a;
$custom-light: #c66dac;
$custom-dark: #000000;
JSON
{
  "hex": "#a8228a",
  "rgb": {
    "r": 168,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 313.433,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.50982,
    "c": 0.19747,
    "h": 339.2
  },
  "luminance": 0.11304
}

Semantic roles & 50–950 ramp

primary
#A8228A
secondary
#61C577
accent
#E9653F
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A8228A

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

Preview Lab → · Contrast checker → · Palette generator →

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