#A6217C#A6217C

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

Color values

HEX#A6217C
RGBrgb(166, 33, 124)
HSLhsl(319, 67%, 39%)
HSVhsv(319, 80%, 65%)
CMYKcmyk(0%, 80.1%, 25.3%, 34.9%)
CIE-LABlab(38.99, 59.92, -19.02)
CIE-LCHlch(38.99, 62.87, 342.39°)
OKLaboklab(49.91% 0.1816 -0.0508)
OKLCHoklch(49.91% 0.189 344.4)
XYZxyz(19.9087, 10.6521, 20.0725)
Luminance0.1065 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6217C #21A64B
analogous
#8E21A6 #A6217C #A6213A
triadic
#A6217C #7CA621 #217CA6
tetradic
#A6217C #A68E21 #21A64B #213AA6
square
#A6217C #A68E21 #21A64B #213AA6
split-complementary
#A6217C #3AA621 #21A68E
monochromatic
#400D30 #731756 #A6217C #D62FA1 #E062B8

Accessibility & contrast

On white

6.71
#A6217C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A6217C
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6217C#FFFFFF#000000##FFFFFF
##A6217C1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334E7E
Deuteranopia (green-blind)
#5C6479
Tritanopia (blue-blind)
#B11F4D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a6217c;
/* rgb */ color: rgb(166, 33, 124);
/* oklch */ color: oklch(49.9% 0.189 344.4);
Tailwind
colors: {
  custom: {
    50: '#c56ca2',
    500: '#a6217c',
    950: '#000000',
  },
}
SCSS
$custom: #a6217c;
$custom-light: #c56ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#a6217c",
  "rgb": {
    "r": 166,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 318.947,
    "s": 66.834,
    "l": 39.02
  },
  "oklch": {
    "l": 0.4991,
    "c": 0.18852,
    "h": 344.4
  },
  "luminance": 0.1065
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A6217C

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

Preview Lab → · Contrast checker → · Palette generator →

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