#A7218B#A7218B

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

Color values

HEX#A7218B
RGBrgb(167, 33, 139)
HSLhsl(313, 67%, 39%)
HSVhsv(313, 80%, 65%)
CMYKcmyk(0%, 80.2%, 16.8%, 34.5%)
CIE-LABlab(39.86, 62.15, -26.90)
CIE-LCHlch(39.86, 67.72, 336.59°)
OKLaboklab(50.8% 0.1845 -0.073)
OKLCHoklch(50.8% 0.198 338.4)
XYZxyz(21.1409, 11.1694, 25.4636)
Luminance0.1117 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7218B #21A73D
analogous
#8021A7 #A7218B #A72148
triadic
#A7218B #8BA721 #218BA7
tetradic
#A7218B #A78021 #21A73D #2148A7
square
#A7218B #A78021 #21A73D #2148A7
split-complementary
#A7218B #48A721 #21A780
monochromatic
#410D36 #741760 #A7218B #D62FB3 #E062C6

Accessibility & contrast

On white

6.49
#A7218B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A7218B
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7218B#FFFFFF#000000##FFFFFF
##A7218B1.006.493.236.49
#FFFFFF6.491.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29518E
Deuteranopia (green-blind)
#576588
Tritanopia (blue-blind)
#B12955
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a7218b;
/* rgb */ color: rgb(167, 33, 139);
/* oklch */ color: oklch(50.8% 0.198 338.4);
Tailwind
colors: {
  custom: {
    50: '#c56dad',
    500: '#a7218b',
    950: '#000000',
  },
}
SCSS
$custom: #a7218b;
$custom-light: #c56dad;
$custom-dark: #000000;
JSON
{
  "hex": "#a7218b",
  "rgb": {
    "r": 167,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 312.537,
    "s": 67,
    "l": 39.216
  },
  "oklch": {
    "l": 0.50801,
    "c": 0.19847,
    "h": 338.4
  },
  "luminance": 0.11167
}

Semantic roles & 50–950 ramp

primary
#A7218B
secondary
#5FC574
accent
#EA623E
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A7218B

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

Preview Lab → · Contrast checker → · Palette generator →

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