#A1228D#A1228D

#A1228D is a mid, vivid purple. Relative luminance 0.106; OKLCH L 50.0% C 0.196 H 335.6°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#A1228D
RGBrgb(161, 34, 141)
HSLhsl(309, 65%, 38%)
HSVhsv(309, 79%, 63%)
CMYKcmyk(0%, 78.9%, 12.4%, 36.9%)
CIE-LABlab(38.98, 60.81, -29.59)
CIE-LCHlch(38.98, 67.63, 334.05°)
OKLaboklab(50% 0.1781 -0.0809)
OKLCHoklch(50% 0.196 335.6)
XYZxyz(20.0780, 10.6461, 26.1916)
Luminance0.1064 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1228D #22A136
analogous
#7522A1 #A1228D #A1224D
triadic
#A1228D #8DA122 #228DA1
tetradic
#A1228D #A17522 #22A136 #224DA1
square
#A1228D #A17522 #22A136 #224DA1
split-complementary
#A1228D #4DA122 #22A175
monochromatic
#3C0D34 #6E1761 #A1228D #D32DB9 #DD60CA

Accessibility & contrast

On white

6.71
#A1228D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#A1228D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A1228D
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A1228D#FFFFFF#000000##FFFFFF
##A1228D1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235090
Deuteranopia (green-blind)
#52628A
Tritanopia (blue-blind)
#A92D56
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a1228d;
/* rgb */ color: rgb(161, 34, 141);
/* oklch */ color: oklch(50.0% 0.196 335.6);
Tailwind
colors: {
  custom: {
    50: '#c16dae',
    500: '#a1228d',
    950: '#000000',
  },
}
SCSS
$custom: #a1228d;
$custom-light: #c16dae;
$custom-dark: #000000;
JSON
{
  "hex": "#a1228d",
  "rgb": {
    "r": 161,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 309.449,
    "s": 65.128,
    "l": 38.235
  },
  "oklch": {
    "l": 0.49996,
    "c": 0.19561,
    "h": 335.6
  },
  "luminance": 0.10644
}

Semantic roles & 50–950 ramp

primary
#A1228D
secondary
#5DC26D
accent
#E85A40
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A1228D

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

Preview Lab → · Contrast checker → · Palette generator →

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