#A7218F#A7218F

#A7218F is a mid, highly saturated pink. Relative luminance 0.113; OKLCH L 51.0% C 0.201 H 336.8°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#A7218F
RGBrgb(167, 33, 143)
HSLhsl(311, 67%, 39%)
HSVhsv(311, 80%, 65%)
CMYKcmyk(0%, 80.2%, 14.4%, 34.5%)
CIE-LABlab(40.06, 62.71, -29.04)
CIE-LCHlch(40.06, 69.11, 335.15°)
OKLaboklab(51.01% 0.1849 -0.0791)
OKLCHoklch(51.01% 0.201 336.8)
XYZxyz(21.4386, 11.2884, 27.0311)
Luminance0.1129 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7218F #21A739
analogous
#7C21A7 #A7218F #A7214C
triadic
#A7218F #8FA721 #218FA7
tetradic
#A7218F #A77C21 #21A739 #214CA7
square
#A7218F #A77C21 #21A739 #214CA7
split-complementary
#A7218F #4CA721 #21A77C
monochromatic
#410D37 #741763 #A7218F #D62FB8 #E062CA

Accessibility & contrast

On white

6.45
#A7218F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A7218F
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7218F#FFFFFF#000000##FFFFFF
##A7218F1.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255292
Deuteranopia (green-blind)
#56658C
Tritanopia (blue-blind)
#B02B57
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a7218f;
/* rgb */ color: rgb(167, 33, 143);
/* oklch */ color: oklch(51.0% 0.201 336.8);
Tailwind
colors: {
  custom: {
    50: '#c56db0',
    500: '#a7218f',
    950: '#000000',
  },
}
SCSS
$custom: #a7218f;
$custom-light: #c56db0;
$custom-dark: #000000;
JSON
{
  "hex": "#a7218f",
  "rgb": {
    "r": 167,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 310.746,
    "s": 67,
    "l": 39.216
  },
  "oklch": {
    "l": 0.51007,
    "c": 0.20112,
    "h": 336.8
  },
  "luminance": 0.11286
}

Semantic roles & 50–950 ramp

primary
#A7218F
secondary
#5FC571
accent
#EA5D3E
background
#FCF7FA
surface
#F9EDF5
border
#D2C8CF
text
#130810
muted
#827B7F

Preview Lab

Preview with #A7218F

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

Preview Lab → · Contrast checker → · Palette generator →

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