#A7218A#A7218A

#A7218A is a mid, vivid pink. Relative luminance 0.111; OKLCH L 50.8% C 0.198 H 338.8°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#A7218A
RGBrgb(167, 33, 138)
HSLhsl(313, 67%, 39%)
HSVhsv(313, 80%, 65%)
CMYKcmyk(0%, 80.2%, 17.4%, 34.5%)
CIE-LABlab(39.82, 62.01, -26.37)
CIE-LCHlch(39.82, 67.39, 336.97°)
OKLaboklab(50.75% 0.1844 -0.0715)
OKLCHoklch(50.75% 0.198 338.8)
XYZxyz(21.0682, 11.1403, 25.0806)
Luminance0.1114 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7218A #21A73E
analogous
#8121A7 #A7218A #A72147
triadic
#A7218A #8AA721 #218AA7
tetradic
#A7218A #A78121 #21A73E #2147A7
square
#A7218A #A78121 #21A73E #2147A7
split-complementary
#A7218A #47A721 #21A781
monochromatic
#410D36 #741760 #A7218A #D62FB2 #E062C5

Accessibility & contrast

On white

6.51
#A7218A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#A7218A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A7218A
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7218A#FFFFFF#000000##FFFFFF
##A7218A1.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a7218a;
/* rgb */ color: rgb(167, 33, 138);
/* oklch */ color: oklch(50.8% 0.198 338.8);
Tailwind
colors: {
  custom: {
    50: '#c56dac',
    500: '#a7218a',
    950: '#000000',
  },
}
SCSS
$custom: #a7218a;
$custom-light: #c56dac;
$custom-dark: #000000;
JSON
{
  "hex": "#a7218a",
  "rgb": {
    "r": 167,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 312.985,
    "s": 67,
    "l": 39.216
  },
  "oklch": {
    "l": 0.50751,
    "c": 0.19781,
    "h": 338.8
  },
  "luminance": 0.11138
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A7218A

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

Preview Lab → · Contrast checker → · Palette generator →

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