#A1228C#A1228C

#A1228C is a mid, vivid purple. Relative luminance 0.106; OKLCH L 49.9% C 0.195 H 336.0°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#A1228C
RGBrgb(161, 34, 140)
HSLhsl(310, 65%, 38%)
HSVhsv(310, 79%, 63%)
CMYKcmyk(0%, 78.9%, 13%, 36.9%)
CIE-LABlab(38.93, 60.66, -29.06)
CIE-LCHlch(38.93, 67.26, 334.40°)
OKLaboklab(49.94% 0.178 -0.0793)
OKLCHoklch(49.94% 0.195 336)
XYZxyz(20.0039, 10.6164, 25.8015)
Luminance0.1061 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1228C #22A137
analogous
#7622A1 #A1228C #A1224D
triadic
#A1228C #8CA122 #228CA1
tetradic
#A1228C #A17622 #22A137 #224DA1
square
#A1228C #A17622 #22A137 #224DA1
split-complementary
#A1228C #4DA122 #22A176
monochromatic
#3C0D34 #6E1760 #A1228C #D32DB7 #DD60C9

Accessibility & contrast

On white

6.72
#A1228C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#A1228C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A1228C
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A1228C#FFFFFF#000000##FFFFFF
##A1228C1.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24508F
Deuteranopia (green-blind)
#526289
Tritanopia (blue-blind)
#A92C56
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a1228c;
/* rgb */ color: rgb(161, 34, 140);
/* oklch */ color: oklch(49.9% 0.195 336.0);
Tailwind
colors: {
  custom: {
    50: '#c16dae',
    500: '#a1228c',
    950: '#000000',
  },
}
SCSS
$custom: #a1228c;
$custom-light: #c16dae;
$custom-dark: #000000;
JSON
{
  "hex": "#a1228c",
  "rgb": {
    "r": 161,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 309.921,
    "s": 65.128,
    "l": 38.235
  },
  "oklch": {
    "l": 0.49942,
    "c": 0.19492,
    "h": 336
  },
  "luminance": 0.10615
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A1228C

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

Preview Lab → · Contrast checker → · Palette generator →

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