#A8218A#A8218A

#A8218A is a mid, vivid pink. Relative luminance 0.112; OKLCH L 50.9% C 0.198 H 339.1°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#A8218A
RGBrgb(168, 33, 138)
HSLhsl(313, 67%, 39%)
HSVhsv(313, 80%, 66%)
CMYKcmyk(0%, 80.4%, 17.9%, 34.1%)
CIE-LABlab(40.00, 62.24, -26.07)
CIE-LCHlch(40.00, 67.48, 337.27°)
OKLaboklab(50.92% 0.1854 -0.0706)
OKLCHoklch(50.92% 0.198 339.1)
XYZxyz(21.2803, 11.2497, 25.0905)
Luminance0.1125 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8218A #21A83F
analogous
#8221A8 #A8218A #A82147
triadic
#A8218A #8AA821 #218AA8
tetradic
#A8218A #A88221 #21A83F #2147A8
square
#A8218A #A88221 #21A83F #2147A8
split-complementary
#A8218A #47A821 #21A882
monochromatic
#420D36 #751760 #A8218A #D630B1 #E063C5

Accessibility & contrast

On white

6.46
#A8218A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#A8218A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A8218A
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8218A#FFFFFF#000000##FFFFFF
##A8218A1.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A518D
Deuteranopia (green-blind)
#596687
Tritanopia (blue-blind)
#B22854
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a8218a;
/* rgb */ color: rgb(168, 33, 138);
/* oklch */ color: oklch(50.9% 0.198 339.1);
Tailwind
colors: {
  custom: {
    50: '#c66dac',
    500: '#a8218a',
    950: '#000000',
  },
}
SCSS
$custom: #a8218a;
$custom-light: #c66dac;
$custom-dark: #000000;
JSON
{
  "hex": "#a8218a",
  "rgb": {
    "r": 168,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 313.333,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.50915,
    "c": 0.19837,
    "h": 339.1
  },
  "luminance": 0.11248
}

Semantic roles & 50–950 ramp

primary
#A8218A
secondary
#5FC576
accent
#EA643E
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140810
muted
#827B7F

Preview Lab

Preview with #A8218A

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

Preview Lab → · Contrast checker → · Palette generator →

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