#A6217F#A6217F

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

Color values

HEX#A6217F
RGBrgb(166, 33, 127)
HSLhsl(318, 67%, 39%)
HSVhsv(318, 80%, 65%)
CMYKcmyk(0%, 80.1%, 23.5%, 34.9%)
CIE-LABlab(39.12, 60.31, -20.68)
CIE-LCHlch(39.12, 63.75, 341.08°)
OKLaboklab(50.05% 0.1821 -0.0554)
OKLCHoklch(50.05% 0.19 343.1)
XYZxyz(20.1013, 10.7292, 21.0869)
Luminance0.1073 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6217F #21A648
analogous
#8B21A6 #A6217F #A6213D
triadic
#A6217F #7FA621 #217FA6
tetradic
#A6217F #A68B21 #21A648 #213DA6
square
#A6217F #A68B21 #21A648 #213DA6
split-complementary
#A6217F #3DA621 #21A68B
monochromatic
#400D31 #731758 #A6217F #D62FA5 #E062BB

Accessibility & contrast

On white

6.68
#A6217F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A6217F
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6217F#FFFFFF#000000##FFFFFF
##A6217F1.006.683.156.68
#FFFFFF6.681.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314E81
Deuteranopia (green-blind)
#5B647C
Tritanopia (blue-blind)
#B1214E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a6217f;
/* rgb */ color: rgb(166, 33, 127);
/* oklch */ color: oklch(50.0% 0.190 343.1);
Tailwind
colors: {
  custom: {
    50: '#c56ca4',
    500: '#a6217f',
    950: '#000000',
  },
}
SCSS
$custom: #a6217f;
$custom-light: #c56ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#a6217f",
  "rgb": {
    "r": 166,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 317.594,
    "s": 66.834,
    "l": 39.02
  },
  "oklch": {
    "l": 0.50049,
    "c": 0.19031,
    "h": 343.1
  },
  "luminance": 0.10727
}

Semantic roles & 50–950 ramp

primary
#A6217F
secondary
#5EC57C
accent
#EA703E
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#13080F
muted
#827B7F

Preview Lab

Preview with #A6217F

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

Preview Lab → · Contrast checker → · Palette generator →

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