#A2228E#A2228E

#A2228E is a mid, vivid purple. Relative luminance 0.108; OKLCH L 50.2% C 0.197 H 335.5°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#A2228E
RGBrgb(162, 34, 142)
HSLhsl(309, 65%, 38%)
HSVhsv(309, 79%, 64%)
CMYKcmyk(0%, 79%, 12.3%, 36.5%)
CIE-LABlab(39.21, 61.18, -29.83)
CIE-LCHlch(39.21, 68.07, 334.01°)
OKLaboklab(50.21% 0.1792 -0.0815)
OKLCHoklch(50.21% 0.197 335.5)
XYZxyz(20.3551, 10.7803, 26.5947)
Luminance0.1078 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2228E #22A236
analogous
#7622A2 #A2228E #A2224E
triadic
#A2228E #8EA222 #228EA2
tetradic
#A2228E #A27622 #22A236 #224EA2
square
#A2228E #A27622 #22A236 #224EA2
split-complementary
#A2228E #4EA222 #22A276
monochromatic
#3D0D35 #6F1762 #A2228E #D32EB9 #DE61CA

Accessibility & contrast

On white

6.65
#A2228E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#A2228E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A2228E
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2228E#FFFFFF#000000##FFFFFF
##A2228E1.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235091
Deuteranopia (green-blind)
#52638B
Tritanopia (blue-blind)
#AA2D57
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a2228e;
/* rgb */ color: rgb(162, 34, 142);
/* oklch */ color: oklch(50.2% 0.197 335.5);
Tailwind
colors: {
  custom: {
    50: '#c16daf',
    500: '#a2228e',
    950: '#000000',
  },
}
SCSS
$custom: #a2228e;
$custom-light: #c16daf;
$custom-dark: #000000;
JSON
{
  "hex": "#a2228e",
  "rgb": {
    "r": 162,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 309.375,
    "s": 65.306,
    "l": 38.431
  },
  "oklch": {
    "l": 0.50211,
    "c": 0.19684,
    "h": 335.5
  },
  "luminance": 0.10778
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A2228E

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

Preview Lab → · Contrast checker → · Palette generator →

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