#A1228A#A1228A

#A1228A is a mid, vivid pink. Relative luminance 0.106; OKLCH L 49.8% C 0.194 H 336.8°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#A1228A
RGBrgb(161, 34, 138)
HSLhsl(311, 65%, 38%)
HSVhsv(311, 79%, 63%)
CMYKcmyk(0%, 78.9%, 14.3%, 36.9%)
CIE-LABlab(38.83, 60.37, -27.99)
CIE-LCHlch(38.83, 66.54, 335.12°)
OKLaboklab(49.84% 0.1779 -0.0763)
OKLCHoklch(49.84% 0.194 336.8)
XYZxyz(19.8578, 10.5580, 25.0319)
Luminance0.1056 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1228A #22A139
analogous
#7822A1 #A1228A #A1224A
triadic
#A1228A #8AA122 #228AA1
tetradic
#A1228A #A17822 #22A139 #224AA1
square
#A1228A #A17822 #22A139 #224AA1
split-complementary
#A1228A #4AA122 #22A178
monochromatic
#3C0D33 #6E175F #A1228A #D32DB5 #DD60C7

Accessibility & contrast

On white

6.75
#A1228A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#A1228A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A1228A
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A1228A#FFFFFF#000000##FFFFFF
##A1228A1.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264F8D
Deuteranopia (green-blind)
#536287
Tritanopia (blue-blind)
#AA2B55
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #a1228a;
/* rgb */ color: rgb(161, 34, 138);
/* oklch */ color: oklch(49.8% 0.194 336.8);
Tailwind
colors: {
  custom: {
    50: '#c16cac',
    500: '#a1228a',
    950: '#000000',
  },
}
SCSS
$custom: #a1228a;
$custom-light: #c16cac;
$custom-dark: #000000;
JSON
{
  "hex": "#a1228a",
  "rgb": {
    "r": 161,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 310.866,
    "s": 65.128,
    "l": 38.235
  },
  "oklch": {
    "l": 0.49837,
    "c": 0.19355,
    "h": 336.8
  },
  "luminance": 0.10556
}

Semantic roles & 50–950 ramp

primary
#A1228A
secondary
#5DC26F
accent
#E85E40
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A1228A

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

Preview Lab → · Contrast checker → · Palette generator →

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