#A6217B#A6217B

#A6217B is a mid, vivid pink. Relative luminance 0.106; OKLCH L 49.9% C 0.188 H 344.8°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#A6217B
RGBrgb(166, 33, 123)
HSLhsl(319, 67%, 39%)
HSVhsv(319, 80%, 65%)
CMYKcmyk(0%, 80.1%, 25.9%, 34.9%)
CIE-LABlab(38.95, 59.80, -18.46)
CIE-LCHlch(38.95, 62.58, 342.84°)
OKLaboklab(49.86% 0.1814 -0.0492)
OKLCHoklch(49.86% 0.188 344.8)
XYZxyz(19.8458, 10.6270, 19.7411)
Luminance0.1062 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6217B #21A64C
analogous
#8F21A6 #A6217B #A62139
triadic
#A6217B #7BA621 #217BA6
tetradic
#A6217B #A68F21 #21A64C #2139A6
square
#A6217B #A68F21 #21A64C #2139A6
split-complementary
#A6217B #39A621 #21A68F
monochromatic
#400D2F #731755 #A6217B #D62FA0 #E062B7

Accessibility & contrast

On white

6.72
#A6217B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#A6217B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A6217B
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6217B#FFFFFF#000000##FFFFFF
##A6217B1.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334E7D
Deuteranopia (green-blind)
#5C6478
Tritanopia (blue-blind)
#B11F4C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a6217b;
/* rgb */ color: rgb(166, 33, 123);
/* oklch */ color: oklch(49.9% 0.188 344.8);
Tailwind
colors: {
  custom: {
    50: '#c56ca1',
    500: '#a6217b',
    950: '#000000',
  },
}
SCSS
$custom: #a6217b;
$custom-light: #c56ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#a6217b",
  "rgb": {
    "r": 166,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 319.398,
    "s": 66.834,
    "l": 39.02
  },
  "oklch": {
    "l": 0.49865,
    "c": 0.18793,
    "h": 344.8
  },
  "luminance": 0.10625
}

Semantic roles & 50–950 ramp

primary
#A6217B
secondary
#5EC57F
accent
#EA763E
background
#FCF7F9
surface
#F9EDF2
border
#D2C8CC
text
#13080F
muted
#827B7E

Preview Lab

Preview with #A6217B

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

Preview Lab → · Contrast checker → · Palette generator →

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