#A7217D#A7217D

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

Color values

HEX#A7217D
RGBrgb(167, 33, 125)
HSLhsl(319, 67%, 39%)
HSVhsv(319, 80%, 65%)
CMYKcmyk(0%, 80.2%, 25.1%, 34.5%)
CIE-LABlab(39.22, 60.29, -19.27)
CIE-LCHlch(39.22, 63.30, 342.27°)
OKLaboklab(50.13% 0.1826 -0.0514)
OKLCHoklch(50.13% 0.19 344.3)
XYZxyz(20.1827, 10.7861, 20.4171)
Luminance0.1078 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7217D #21A74B
analogous
#8E21A7 #A7217D #A7213A
triadic
#A7217D #7DA721 #217DA7
tetradic
#A7217D #A78E21 #21A74B #213AA7
square
#A7217D #A78E21 #21A74B #213AA7
split-complementary
#A7217D #3AA721 #21A78E
monochromatic
#410D31 #741757 #A7217D #D62FA2 #E062B9

Accessibility & contrast

On white

6.65
#A7217D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A7217D
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7217D#FFFFFF#000000##FFFFFF
##A7217D1.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334E7F
Deuteranopia (green-blind)
#5D647A
Tritanopia (blue-blind)
#B2204D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a7217d;
/* rgb */ color: rgb(167, 33, 125);
/* oklch */ color: oklch(50.1% 0.190 344.3);
Tailwind
colors: {
  custom: {
    50: '#c56ca2',
    500: '#a7217d',
    950: '#000000',
  },
}
SCSS
$custom: #a7217d;
$custom-light: #c56ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#a7217d",
  "rgb": {
    "r": 167,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 318.806,
    "s": 67,
    "l": 39.216
  },
  "oklch": {
    "l": 0.50125,
    "c": 0.18973,
    "h": 344.3
  },
  "luminance": 0.10784
}

Semantic roles & 50–950 ramp

primary
#A7217D
secondary
#5FC57F
accent
#EA743E
background
#FCF7FA
surface
#F9EDF3
border
#D2C8CD
text
#14080F
muted
#827B7F

Preview Lab

Preview with #A7217D

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

Preview Lab → · Contrast checker → · Palette generator →

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