#A7217C#A7217C

#A7217C is a mid, vivid pink. Relative luminance 0.108; OKLCH L 50.1% C 0.189 H 344.7°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#A7217C
RGBrgb(167, 33, 124)
HSLhsl(319, 67%, 39%)
HSVhsv(319, 80%, 65%)
CMYKcmyk(0%, 80.2%, 25.7%, 34.5%)
CIE-LABlab(39.17, 60.16, -18.72)
CIE-LCHlch(39.17, 63.01, 342.72°)
OKLaboklab(50.08% 0.1825 -0.0499)
OKLCHoklch(50.08% 0.189 344.7)
XYZxyz(20.1192, 10.7607, 20.0824)
Luminance0.1076 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7217C #21A74C
analogous
#8F21A7 #A7217C #A72139
triadic
#A7217C #7CA721 #217CA7
tetradic
#A7217C #A78F21 #21A74C #2139A7
square
#A7217C #A78F21 #21A74C #2139A7
split-complementary
#A7217C #39A721 #21A78F
monochromatic
#410D30 #741756 #A7217C #D62FA0 #E062B8

Accessibility & contrast

On white

6.66
#A7217C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#A7217C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A7217C
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7217C#FFFFFF#000000##FFFFFF
##A7217C1.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334E7E
Deuteranopia (green-blind)
#5D6479
Tritanopia (blue-blind)
#B21F4D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a7217c;
/* rgb */ color: rgb(167, 33, 124);
/* oklch */ color: oklch(50.1% 0.189 344.7);
Tailwind
colors: {
  custom: {
    50: '#c56ca2',
    500: '#a7217c',
    950: '#000000',
  },
}
SCSS
$custom: #a7217c;
$custom-light: #c56ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#a7217c",
  "rgb": {
    "r": 167,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 319.254,
    "s": 67,
    "l": 39.216
  },
  "oklch": {
    "l": 0.50079,
    "c": 0.18915,
    "h": 344.7
  },
  "luminance": 0.10758
}

Semantic roles & 50–950 ramp

primary
#A7217C
secondary
#5FC580
accent
#EA753E
background
#FCF7F9
surface
#F9EDF2
border
#D2C8CC
text
#14080F
muted
#827B7E

Preview Lab

Preview with #A7217C

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

Preview Lab → · Contrast checker → · Palette generator →

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