#A2228D#A2228D

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

Color values

HEX#A2228D
RGBrgb(162, 34, 141)
HSLhsl(310, 65%, 38%)
HSVhsv(310, 79%, 64%)
CMYKcmyk(0%, 79%, 13%, 36.5%)
CIE-LABlab(39.16, 61.03, -29.30)
CIE-LCHlch(39.16, 67.70, 334.36°)
OKLaboklab(50.16% 0.1791 -0.08)
OKLCHoklch(50.16% 0.196 335.9)
XYZxyz(20.2804, 10.7504, 26.2011)
Luminance0.1075 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2228D #22A237
analogous
#7722A2 #A2228D #A2224D
triadic
#A2228D #8DA222 #228DA2
tetradic
#A2228D #A27722 #22A237 #224DA2
square
#A2228D #A27722 #22A237 #224DA2
split-complementary
#A2228D #4DA222 #22A277
monochromatic
#3D0D35 #6F1761 #A2228D #D32EB8 #DE61C9

Accessibility & contrast

On white

6.67
#A2228D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#A2228D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A2228D
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2228D#FFFFFF#000000##FFFFFF
##A2228D1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245090
Deuteranopia (green-blind)
#53638A
Tritanopia (blue-blind)
#AB2D56
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a2228d;
/* rgb */ color: rgb(162, 34, 141);
/* oklch */ color: oklch(50.2% 0.196 335.9);
Tailwind
colors: {
  custom: {
    50: '#c16dae',
    500: '#a2228d',
    950: '#000000',
  },
}
SCSS
$custom: #a2228d;
$custom-light: #c16dae;
$custom-dark: #000000;
JSON
{
  "hex": "#a2228d",
  "rgb": {
    "r": 162,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 309.844,
    "s": 65.306,
    "l": 38.431
  },
  "oklch": {
    "l": 0.50158,
    "c": 0.19615,
    "h": 335.9
  },
  "luminance": 0.10749
}

Semantic roles & 50–950 ramp

primary
#A2228D
secondary
#5DC36E
accent
#E85B40
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A2228D

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

Preview Lab → · Contrast checker → · Palette generator →

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