#A6218E#A6218E

#A6218E is a mid, vivid pink. Relative luminance 0.111; OKLCH L 50.8% C 0.200 H 336.9°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#A6218E
RGBrgb(166, 33, 142)
HSLhsl(311, 67%, 39%)
HSVhsv(311, 80%, 65%)
CMYKcmyk(0%, 80.1%, 14.5%, 34.9%)
CIE-LABlab(39.83, 62.35, -28.80)
CIE-LCHlch(39.83, 68.68, 335.20°)
OKLaboklab(50.79% 0.1839 -0.0785)
OKLCHoklch(50.79% 0.2 336.9)
XYZxyz(21.1527, 11.1497, 26.6240)
Luminance0.1115 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6218E #21A639
analogous
#7C21A6 #A6218E #A6214C
triadic
#A6218E #8EA621 #218EA6
tetradic
#A6218E #A67C21 #21A639 #214CA6
square
#A6218E #A67C21 #21A639 #214CA6
split-complementary
#A6218E #4CA621 #21A67C
monochromatic
#400D37 #731762 #A6218E #D62FB7 #E062C9

Accessibility & contrast

On white

6.50
#A6218E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#A6218E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A6218E
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6218E#FFFFFF#000000##FFFFFF
##A6218E1.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255191
Deuteranopia (green-blind)
#55658B
Tritanopia (blue-blind)
#AF2B57
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a6218e;
/* rgb */ color: rgb(166, 33, 142);
/* oklch */ color: oklch(50.8% 0.200 336.9);
Tailwind
colors: {
  custom: {
    50: '#c46daf',
    500: '#a6218e',
    950: '#000000',
  },
}
SCSS
$custom: #a6218e;
$custom-light: #c46daf;
$custom-dark: #000000;
JSON
{
  "hex": "#a6218e",
  "rgb": {
    "r": 166,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 310.827,
    "s": 66.834,
    "l": 39.02
  },
  "oklch": {
    "l": 0.50792,
    "c": 0.1999,
    "h": 336.9
  },
  "luminance": 0.11148
}

Semantic roles & 50–950 ramp

primary
#A6218E
secondary
#5EC571
accent
#EA5D3E
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A6218E

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

Preview Lab → · Contrast checker → · Palette generator →

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