#A8218B#A8218B

#A8218B is a mid, vivid pink. Relative luminance 0.113; OKLCH L 51.0% C 0.199 H 338.7°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#A8218B
RGBrgb(168, 33, 139)
HSLhsl(313, 67%, 39%)
HSVhsv(313, 80%, 66%)
CMYKcmyk(0%, 80.4%, 17.3%, 34.1%)
CIE-LABlab(40.05, 62.38, -26.61)
CIE-LCHlch(40.05, 67.81, 336.90°)
OKLaboklab(50.97% 0.1855 -0.0722)
OKLCHoklch(50.97% 0.199 338.7)
XYZxyz(21.3531, 11.2788, 25.4736)
Luminance0.1128 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8218B #21A83E
analogous
#8221A8 #A8218B #A82148
triadic
#A8218B #8BA821 #218BA8
tetradic
#A8218B #A88221 #21A83E #2148A8
square
#A8218B #A88221 #21A83E #2148A8
split-complementary
#A8218B #48A821 #21A882
monochromatic
#420D36 #751761 #A8218B #D630B3 #E063C5

Accessibility & contrast

On white

6.45
#A8218B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#A8218B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A8218B
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8218B#FFFFFF#000000##FFFFFF
##A8218B1.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A518E
Deuteranopia (green-blind)
#586688
Tritanopia (blue-blind)
#B22855
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a8218b;
/* rgb */ color: rgb(168, 33, 139);
/* oklch */ color: oklch(51.0% 0.199 338.7);
Tailwind
colors: {
  custom: {
    50: '#c66dad',
    500: '#a8218b',
    950: '#000000',
  },
}
SCSS
$custom: #a8218b;
$custom-light: #c66dad;
$custom-dark: #000000;
JSON
{
  "hex": "#a8218b",
  "rgb": {
    "r": 168,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 312.889,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.50966,
    "c": 0.19902,
    "h": 338.7
  },
  "luminance": 0.11277
}

Semantic roles & 50–950 ramp

primary
#A8218B
secondary
#5FC575
accent
#EA633E
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A8218B

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

Preview Lab → · Contrast checker → · Palette generator →

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