#A7217B#A7217B

#A7217B is a mid, vivid pink. Relative luminance 0.107; OKLCH L 50.0% C 0.189 H 345.1°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#A7217B
RGBrgb(167, 33, 123)
HSLhsl(320, 67%, 39%)
HSVhsv(320, 80%, 65%)
CMYKcmyk(0%, 80.2%, 26.3%, 34.5%)
CIE-LABlab(39.13, 60.04, -18.16)
CIE-LCHlch(39.13, 62.73, 343.17°)
OKLaboklab(50.03% 0.1823 -0.0483)
OKLCHoklch(50.03% 0.189 345.1)
XYZxyz(20.0563, 10.7355, 19.7510)
Luminance0.1073 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7217B #21A74D
analogous
#9021A7 #A7217B #A72138
triadic
#A7217B #7BA721 #217BA7
tetradic
#A7217B #A79021 #21A74D #2138A7
square
#A7217B #A79021 #21A74D #2138A7
split-complementary
#A7217B #38A721 #21A790
monochromatic
#410D30 #741755 #A7217B #D62F9F #E062B7

Accessibility & contrast

On white

6.67
#A7217B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A7217B
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7217B#FFFFFF#000000##FFFFFF
##A7217B1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#344E7D
Deuteranopia (green-blind)
#5D6478
Tritanopia (blue-blind)
#B31E4C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a7217b;
/* rgb */ color: rgb(167, 33, 123);
/* oklch */ color: oklch(50.0% 0.189 345.1);
Tailwind
colors: {
  custom: {
    50: '#c66ca1',
    500: '#a7217b',
    950: '#000000',
  },
}
SCSS
$custom: #a7217b;
$custom-light: #c66ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#a7217b",
  "rgb": {
    "r": 167,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 319.701,
    "s": 67,
    "l": 39.216
  },
  "oklch": {
    "l": 0.50034,
    "c": 0.18857,
    "h": 345.1
  },
  "luminance": 0.10733
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A7217B

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

Preview Lab → · Contrast checker → · Palette generator →

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