#A7218C#A7218C

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

Color values

HEX#A7218C
RGBrgb(167, 33, 140)
HSLhsl(312, 67%, 39%)
HSVhsv(312, 80%, 65%)
CMYKcmyk(0%, 80.2%, 16.2%, 34.5%)
CIE-LABlab(39.91, 62.29, -27.44)
CIE-LCHlch(39.91, 68.07, 336.23°)
OKLaboklab(50.85% 0.1846 -0.0746)
OKLCHoklch(50.85% 0.199 338)
XYZxyz(21.2143, 11.1987, 25.8502)
Luminance0.1120 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7218C #21A73C
analogous
#7F21A7 #A7218C #A72149
triadic
#A7218C #8CA721 #218CA7
tetradic
#A7218C #A77F21 #21A73C #2149A7
square
#A7218C #A77F21 #21A73C #2149A7
split-complementary
#A7218C #49A721 #21A77F
monochromatic
#410D36 #741761 #A7218C #D62FB4 #E062C7

Accessibility & contrast

On white

6.48
#A7218C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#A7218C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A7218C
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7218C#FFFFFF#000000##FFFFFF
##A7218C1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28518F
Deuteranopia (green-blind)
#576589
Tritanopia (blue-blind)
#B12956
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a7218c;
/* rgb */ color: rgb(167, 33, 140);
/* oklch */ color: oklch(50.9% 0.199 338.0);
Tailwind
colors: {
  custom: {
    50: '#c56dae',
    500: '#a7218c',
    950: '#000000',
  },
}
SCSS
$custom: #a7218c;
$custom-light: #c56dae;
$custom-dark: #000000;
JSON
{
  "hex": "#a7218c",
  "rgb": {
    "r": 167,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 312.09,
    "s": 67,
    "l": 39.216
  },
  "oklch": {
    "l": 0.50852,
    "c": 0.19912,
    "h": 338
  },
  "luminance": 0.11197
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A7218C

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

Preview Lab → · Contrast checker → · Palette generator →

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