#A7218E#A7218E

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

Color values

HEX#A7218E
RGBrgb(167, 33, 142)
HSLhsl(311, 67%, 39%)
HSVhsv(311, 80%, 65%)
CMYKcmyk(0%, 80.2%, 15%, 34.5%)
CIE-LABlab(40.01, 62.57, -28.51)
CIE-LCHlch(40.01, 68.76, 335.51°)
OKLaboklab(50.96% 0.1848 -0.0776)
OKLCHoklch(50.96% 0.2 337.2)
XYZxyz(21.3631, 11.2583, 26.6339)
Luminance0.1126 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7218E #21A73A
analogous
#7D21A7 #A7218E #A7214B
triadic
#A7218E #8EA721 #218EA7
tetradic
#A7218E #A77D21 #21A73A #214BA7
square
#A7218E #A77D21 #21A73A #214BA7
split-complementary
#A7218E #4BA721 #21A77D
monochromatic
#410D37 #741763 #A7218E #D62FB7 #E062C9

Accessibility & contrast

On white

6.46
#A7218E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A7218E
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7218E#FFFFFF#000000##FFFFFF
##A7218E1.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a7218e;
/* rgb */ color: rgb(167, 33, 142);
/* oklch */ color: oklch(51.0% 0.200 337.2);
Tailwind
colors: {
  custom: {
    50: '#c56daf',
    500: '#a7218e',
    950: '#000000',
  },
}
SCSS
$custom: #a7218e;
$custom-light: #c56daf;
$custom-dark: #000000;
JSON
{
  "hex": "#a7218e",
  "rgb": {
    "r": 167,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 311.194,
    "s": 67,
    "l": 39.216
  },
  "oklch": {
    "l": 0.50955,
    "c": 0.20045,
    "h": 337.2
  },
  "luminance": 0.11256
}

Semantic roles & 50–950 ramp

primary
#A7218E
secondary
#5FC572
accent
#EA5E3E
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A7218E

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

Preview Lab → · Contrast checker → · Palette generator →

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