#A2218B#A2218B

#A2218B is a mid, vivid pink. Relative luminance 0.106; OKLCH L 50.0% C 0.196 H 336.7°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#A2218B
RGBrgb(162, 33, 139)
HSLhsl(311, 66%, 38%)
HSVhsv(311, 80%, 64%)
CMYKcmyk(0%, 79.6%, 14.2%, 36.5%)
CIE-LABlab(38.96, 61.02, -28.39)
CIE-LCHlch(38.96, 67.30, 335.05°)
OKLaboklab(49.98% 0.1798 -0.0774)
OKLCHoklch(49.98% 0.196 336.7)
XYZxyz(20.1047, 10.6351, 25.4150)
Luminance0.1063 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2218B #21A238
analogous
#7821A2 #A2218B #A2214A
triadic
#A2218B #8BA221 #218BA2
tetradic
#A2218B #A27821 #21A238 #214AA2
square
#A2218B #A27821 #21A238 #214AA2
split-complementary
#A2218B #4AA221 #21A278
monochromatic
#3C0C34 #6F175F #A2218B #D42CB6 #DE5FC8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A2218B#FFFFFF#000000##FFFFFF
##A2218B1.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254F8E
Deuteranopia (green-blind)
#536388
Tritanopia (blue-blind)
#AB2B55
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a2218b;
/* rgb */ color: rgb(162, 33, 139);
/* oklch */ color: oklch(50.0% 0.196 336.7);
Tailwind
colors: {
  custom: {
    50: '#c16cad',
    500: '#a2218b',
    950: '#000000',
  },
}
SCSS
$custom: #a2218b;
$custom-light: #c16cad;
$custom-dark: #000000;
JSON
{
  "hex": "#a2218b",
  "rgb": {
    "r": 162,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 310.698,
    "s": 66.154,
    "l": 38.235
  },
  "oklch": {
    "l": 0.49983,
    "c": 0.19572,
    "h": 336.7
  },
  "luminance": 0.10633
}

Semantic roles & 50–950 ramp

primary
#A2218B
secondary
#5CC36E
accent
#E95D3F
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A2218B

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

Preview Lab → · Contrast checker → · Palette generator →

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