#A7217E#A7217E

#A7217E is a mid, vivid pink. Relative luminance 0.108; OKLCH L 50.2% C 0.190 H 343.8°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#A7217E
RGBrgb(167, 33, 126)
HSLhsl(318, 67%, 39%)
HSVhsv(318, 80%, 65%)
CMYKcmyk(0%, 80.2%, 24.6%, 34.5%)
CIE-LABlab(39.26, 60.42, -19.82)
CIE-LCHlch(39.26, 63.59, 341.83°)
OKLaboklab(50.17% 0.1828 -0.053)
OKLCHoklch(50.17% 0.19 343.8)
XYZxyz(20.2469, 10.8118, 20.7552)
Luminance0.1081 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7217E #21A74A
analogous
#8D21A7 #A7217E #A7213B
triadic
#A7217E #7EA721 #217EA7
tetradic
#A7217E #A78D21 #21A74A #213BA7
square
#A7217E #A78D21 #21A74A #213BA7
split-complementary
#A7217E #3BA721 #21A78D
monochromatic
#410D31 #741757 #A7217E #D62FA3 #E062BA

Accessibility & contrast

On white

6.64
#A7217E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#A7217E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A7217E
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7217E#FFFFFF#000000##FFFFFF
##A7217E1.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324E80
Deuteranopia (green-blind)
#5C647B
Tritanopia (blue-blind)
#B2204E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a7217e;
/* rgb */ color: rgb(167, 33, 126);
/* oklch */ color: oklch(50.2% 0.190 343.8);
Tailwind
colors: {
  custom: {
    50: '#c56da3',
    500: '#a7217e',
    950: '#000000',
  },
}
SCSS
$custom: #a7217e;
$custom-light: #c56da3;
$custom-dark: #000000;
JSON
{
  "hex": "#a7217e",
  "rgb": {
    "r": 167,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 318.358,
    "s": 67,
    "l": 39.216
  },
  "oklch": {
    "l": 0.50171,
    "c": 0.19033,
    "h": 343.8
  },
  "luminance": 0.1081
}

Semantic roles & 50–950 ramp

primary
#A7217E
secondary
#5FC57E
accent
#EA733E
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#13080F
muted
#827B7F

Preview Lab

Preview with #A7217E

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

Preview Lab → · Contrast checker → · Palette generator →

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