#A6217D#A6217D

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

Color values

HEX#A6217D
RGBrgb(166, 33, 125)
HSLhsl(318, 67%, 39%)
HSVhsv(318, 80%, 65%)
CMYKcmyk(0%, 80.1%, 24.7%, 34.9%)
CIE-LABlab(39.03, 60.05, -19.57)
CIE-LCHlch(39.03, 63.16, 341.95°)
OKLaboklab(49.96% 0.1817 -0.0523)
OKLCHoklch(49.96% 0.189 343.9)
XYZxyz(19.9722, 10.6776, 20.4072)
Luminance0.1067 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6217D #21A64A
analogous
#8D21A6 #A6217D #A6213B
triadic
#A6217D #7DA621 #217DA6
tetradic
#A6217D #A68D21 #21A64A #213BA6
square
#A6217D #A68D21 #21A64A #213BA6
split-complementary
#A6217D #3BA621 #21A68D
monochromatic
#400D30 #731757 #A6217D #D62FA2 #E062B9

Accessibility & contrast

On white

6.70
#A6217D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#A6217D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A6217D
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6217D#FFFFFF#000000##FFFFFF
##A6217D1.006.703.146.70
#FFFFFF6.701.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324E7F
Deuteranopia (green-blind)
#5C647A
Tritanopia (blue-blind)
#B1204D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a6217d;
/* rgb */ color: rgb(166, 33, 125);
/* oklch */ color: oklch(50.0% 0.189 343.9);
Tailwind
colors: {
  custom: {
    50: '#c56ca2',
    500: '#a6217d',
    950: '#000000',
  },
}
SCSS
$custom: #a6217d;
$custom-light: #c56ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#a6217d",
  "rgb": {
    "r": 166,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 318.496,
    "s": 66.834,
    "l": 39.02
  },
  "oklch": {
    "l": 0.49956,
    "c": 0.18911,
    "h": 343.9
  },
  "luminance": 0.10675
}

Semantic roles & 50–950 ramp

primary
#A6217D
secondary
#5EC57E
accent
#EA733E
background
#FCF7FA
surface
#F9EDF3
border
#D2C8CD
text
#13080F
muted
#827B7F

Preview Lab

Preview with #A6217D

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

Preview Lab → · Contrast checker → · Palette generator →

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