#A7217F#A7217F

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

Color values

HEX#A7217F
RGBrgb(167, 33, 127)
HSLhsl(318, 67%, 39%)
HSVhsv(318, 80%, 65%)
CMYKcmyk(0%, 80.2%, 24%, 34.5%)
CIE-LABlab(39.31, 60.55, -20.38)
CIE-LCHlch(39.31, 63.88, 341.40°)
OKLaboklab(50.22% 0.183 -0.0545)
OKLCHoklch(50.22% 0.191 343.4)
XYZxyz(20.3118, 10.8377, 21.0968)
Luminance0.1084 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7217F #21A749
analogous
#8C21A7 #A7217F #A7213C
triadic
#A7217F #7FA721 #217FA7
tetradic
#A7217F #A78C21 #21A749 #213CA7
square
#A7217F #A78C21 #21A749 #213CA7
split-complementary
#A7217F #3CA721 #21A78C
monochromatic
#410D31 #741758 #A7217F #D62FA4 #E062BB

Accessibility & contrast

On white

6.63
#A7217F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#A7217F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A7217F
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7217F#FFFFFF#000000##FFFFFF
##A7217F1.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324F81
Deuteranopia (green-blind)
#5C647C
Tritanopia (blue-blind)
#B2214E
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #a7217f;
/* rgb */ color: rgb(167, 33, 127);
/* oklch */ color: oklch(50.2% 0.191 343.4);
Tailwind
colors: {
  custom: {
    50: '#c56da4',
    500: '#a7217f',
    950: '#000000',
  },
}
SCSS
$custom: #a7217f;
$custom-light: #c56da4;
$custom-dark: #000000;
JSON
{
  "hex": "#a7217f",
  "rgb": {
    "r": 167,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 317.91,
    "s": 67,
    "l": 39.216
  },
  "oklch": {
    "l": 0.50217,
    "c": 0.19092,
    "h": 343.4
  },
  "luminance": 0.10836
}

Semantic roles & 50–950 ramp

primary
#A7217F
secondary
#5FC57D
accent
#EA713E
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#13080F
muted
#827B7F

Preview Lab

Preview with #A7217F

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

Preview Lab → · Contrast checker → · Palette generator →

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