#A7218D#A7218D

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

Color values

HEX#A7218D
RGBrgb(167, 33, 141)
HSLhsl(312, 67%, 39%)
HSVhsv(312, 80%, 65%)
CMYKcmyk(0%, 80.2%, 15.6%, 34.5%)
CIE-LABlab(39.96, 62.43, -27.97)
CIE-LCHlch(39.96, 68.41, 335.86°)
OKLaboklab(50.9% 0.1847 -0.0761)
OKLCHoklch(50.9% 0.2 337.6)
XYZxyz(21.2884, 11.2284, 26.2403)
Luminance0.1123 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7218D #21A73B
analogous
#7E21A7 #A7218D #A7214A
triadic
#A7218D #8DA721 #218DA7
tetradic
#A7218D #A77E21 #21A73B #214AA7
square
#A7218D #A77E21 #21A73B #214AA7
split-complementary
#A7218D #4AA721 #21A77E
monochromatic
#410D37 #741762 #A7218D #D62FB6 #E062C8

Accessibility & contrast

On white

6.47
#A7218D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A7218D
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7218D#FFFFFF#000000##FFFFFF
##A7218D1.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275190
Deuteranopia (green-blind)
#57658A
Tritanopia (blue-blind)
#B02A56
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a7218d;
/* rgb */ color: rgb(167, 33, 141);
/* oklch */ color: oklch(50.9% 0.200 337.6);
Tailwind
colors: {
  custom: {
    50: '#c56dae',
    500: '#a7218d',
    950: '#000000',
  },
}
SCSS
$custom: #a7218d;
$custom-light: #c56dae;
$custom-dark: #000000;
JSON
{
  "hex": "#a7218d",
  "rgb": {
    "r": 167,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 311.642,
    "s": 67,
    "l": 39.216
  },
  "oklch": {
    "l": 0.50904,
    "c": 0.19978,
    "h": 337.6
  },
  "luminance": 0.11226
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A7218D

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

Preview Lab → · Contrast checker → · Palette generator →

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