#A1228E#A1228E

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

Color values

HEX#A1228E
RGBrgb(161, 34, 142)
HSLhsl(309, 65%, 38%)
HSVhsv(309, 79%, 63%)
CMYKcmyk(0%, 78.9%, 11.8%, 36.9%)
CIE-LABlab(39.03, 60.95, -30.13)
CIE-LCHlch(39.03, 67.99, 333.70°)
OKLaboklab(50.05% 0.1782 -0.0824)
OKLCHoklch(50.05% 0.196 335.2)
XYZxyz(20.1527, 10.6760, 26.5852)
Luminance0.1067 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1228E #22A135
analogous
#7422A1 #A1228E #A1224F
triadic
#A1228E #8EA122 #228EA1
tetradic
#A1228E #A17422 #22A135 #224FA1
square
#A1228E #A17422 #22A135 #224FA1
split-complementary
#A1228E #4FA122 #22A174
monochromatic
#3C0D35 #6E1761 #A1228E #D32DBA #DD60CB

Accessibility & contrast

On white

6.70
#A1228E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A1228E
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A1228E#FFFFFF#000000##FFFFFF
##A1228E1.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225091
Deuteranopia (green-blind)
#51628B
Tritanopia (blue-blind)
#A92E57
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a1228e;
/* rgb */ color: rgb(161, 34, 142);
/* oklch */ color: oklch(50.0% 0.196 335.2);
Tailwind
colors: {
  custom: {
    50: '#c16daf',
    500: '#a1228e',
    950: '#000000',
  },
}
SCSS
$custom: #a1228e;
$custom-light: #c16daf;
$custom-dark: #000000;
JSON
{
  "hex": "#a1228e",
  "rgb": {
    "r": 161,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 308.976,
    "s": 65.128,
    "l": 38.235
  },
  "oklch": {
    "l": 0.50049,
    "c": 0.1963,
    "h": 335.2
  },
  "luminance": 0.10674
}

Semantic roles & 50–950 ramp

primary
#A1228E
secondary
#5DC26C
accent
#E85940
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A1228E

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

Preview Lab → · Contrast checker → · Palette generator →

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