#A2218D#A2218D

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

Color values

HEX#A2218D
RGBrgb(162, 33, 141)
HSLhsl(310, 66%, 38%)
HSVhsv(310, 80%, 64%)
CMYKcmyk(0%, 79.6%, 13%, 36.5%)
CIE-LABlab(39.06, 61.31, -29.45)
CIE-LCHlch(39.06, 68.02, 334.34°)
OKLaboklab(50.09% 0.1799 -0.0804)
OKLCHoklch(50.09% 0.197 335.9)
XYZxyz(20.2522, 10.6941, 26.1917)
Luminance0.1069 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2218D #21A236
analogous
#7621A2 #A2218D #A2214D
triadic
#A2218D #8DA221 #218DA2
tetradic
#A2218D #A27621 #21A236 #214DA2
square
#A2218D #A27621 #21A236 #214DA2
split-complementary
#A2218D #4DA221 #21A276
monochromatic
#3C0C34 #6F1761 #A2218D #D42CB9 #DE5FCA

Accessibility & contrast

On white

6.69
#A2218D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#A2218D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A2218D
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2218D#FFFFFF#000000##FFFFFF
##A2218D1.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a2218d;
/* rgb */ color: rgb(162, 33, 141);
/* oklch */ color: oklch(50.1% 0.197 335.9);
Tailwind
colors: {
  custom: {
    50: '#c16cae',
    500: '#a2218d',
    950: '#000000',
  },
}
SCSS
$custom: #a2218d;
$custom-light: #c16cae;
$custom-dark: #000000;
JSON
{
  "hex": "#a2218d",
  "rgb": {
    "r": 162,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 309.767,
    "s": 66.154,
    "l": 38.235
  },
  "oklch": {
    "l": 0.50088,
    "c": 0.19707,
    "h": 335.9
  },
  "luminance": 0.10692
}

Semantic roles & 50–950 ramp

primary
#A2218D
secondary
#5CC36D
accent
#E95A3F
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A2218D

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

Preview Lab → · Contrast checker → · Palette generator →

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