#A8218C#A8218C

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

Color values

HEX#A8218C
RGBrgb(168, 33, 140)
HSLhsl(312, 67%, 39%)
HSVhsv(312, 80%, 66%)
CMYKcmyk(0%, 80.4%, 16.7%, 34.1%)
CIE-LABlab(40.09, 62.52, -27.14)
CIE-LCHlch(40.09, 68.15, 336.53°)
OKLaboklab(51.02% 0.1856 -0.0737)
OKLCHoklch(51.02% 0.2 338.3)
XYZxyz(21.4265, 11.3081, 25.8601)
Luminance0.1131 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8218C #21A83D
analogous
#8021A8 #A8218C #A82149
triadic
#A8218C #8CA821 #218CA8
tetradic
#A8218C #A88021 #21A83D #2149A8
square
#A8218C #A88021 #21A83D #2149A8
split-complementary
#A8218C #49A821 #21A880
monochromatic
#420D37 #751761 #A8218C #D630B4 #E063C6

Accessibility & contrast

On white

6.44
#A8218C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A8218C
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8218C#FFFFFF#000000##FFFFFF
##A8218C1.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29518F
Deuteranopia (green-blind)
#586689
Tritanopia (blue-blind)
#B22956
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a8218c;
/* rgb */ color: rgb(168, 33, 140);
/* oklch */ color: oklch(51.0% 0.200 338.3);
Tailwind
colors: {
  custom: {
    50: '#c66dae',
    500: '#a8218c',
    950: '#000000',
  },
}
SCSS
$custom: #a8218c;
$custom-light: #c66dae;
$custom-dark: #000000;
JSON
{
  "hex": "#a8218c",
  "rgb": {
    "r": 168,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 312.444,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.51016,
    "c": 0.19967,
    "h": 338.3
  },
  "luminance": 0.11306
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A8218C

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

Preview Lab → · Contrast checker → · Palette generator →

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