#A6217E#A6217E

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

Color values

HEX#A6217E
RGBrgb(166, 33, 126)
HSLhsl(318, 67%, 39%)
HSVhsv(318, 80%, 65%)
CMYKcmyk(0%, 80.1%, 24.1%, 34.9%)
CIE-LABlab(39.08, 60.18, -20.13)
CIE-LCHlch(39.08, 63.46, 341.51°)
OKLaboklab(50% 0.1819 -0.0539)
OKLCHoklch(50% 0.19 343.5)
XYZxyz(20.0364, 10.7032, 20.7454)
Luminance0.1070 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6217E #21A649
analogous
#8C21A6 #A6217E #A6213C
triadic
#A6217E #7EA621 #217EA6
tetradic
#A6217E #A68C21 #21A649 #213CA6
square
#A6217E #A68C21 #21A649 #213CA6
split-complementary
#A6217E #3CA621 #21A68C
monochromatic
#400D31 #731757 #A6217E #D62FA3 #E062BA

Accessibility & contrast

On white

6.69
#A6217E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A6217E
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6217E#FFFFFF#000000##FFFFFF
##A6217E1.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324E80
Deuteranopia (green-blind)
#5B647B
Tritanopia (blue-blind)
#B1214E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a6217e;
/* rgb */ color: rgb(166, 33, 126);
/* oklch */ color: oklch(50.0% 0.190 343.5);
Tailwind
colors: {
  custom: {
    50: '#c56ca3',
    500: '#a6217e',
    950: '#000000',
  },
}
SCSS
$custom: #a6217e;
$custom-light: #c56ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#a6217e",
  "rgb": {
    "r": 166,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 318.045,
    "s": 66.834,
    "l": 39.02
  },
  "oklch": {
    "l": 0.50002,
    "c": 0.18971,
    "h": 343.5
  },
  "luminance": 0.10701
}

Semantic roles & 50–950 ramp

primary
#A6217E
secondary
#5EC57D
accent
#EA723E
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#13080F
muted
#827B7F

Preview Lab

Preview with #A6217E

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

Preview Lab → · Contrast checker → · Palette generator →

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