#A1218A#A1218A

#A1218A is a mid, vivid pink. Relative luminance 0.105; OKLCH L 49.8% C 0.194 H 336.8°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#A1218A
RGBrgb(161, 33, 138)
HSLhsl(311, 66%, 38%)
HSVhsv(311, 80%, 63%)
CMYKcmyk(0%, 79.5%, 14.3%, 36.9%)
CIE-LABlab(38.73, 60.65, -28.15)
CIE-LCHlch(38.73, 66.86, 335.11°)
OKLaboklab(49.77% 0.1787 -0.0767)
OKLCHoklch(49.77% 0.194 336.8)
XYZxyz(19.8296, 10.5016, 25.0225)
Luminance0.1050 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1218A #21A138
analogous
#7821A1 #A1218A #A1214A
triadic
#A1218A #8AA121 #218AA1
tetradic
#A1218A #A17821 #21A138 #214AA1
square
#A1218A #A17821 #21A138 #214AA1
split-complementary
#A1218A #4AA121 #21A178
monochromatic
#3B0C33 #6E175E #A1218A #D42CB5 #DE5EC7

Accessibility & contrast

On white

6.77
#A1218A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#A1218A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A1218A
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A1218A#FFFFFF#000000##FFFFFF
##A1218A1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254F8D
Deuteranopia (green-blind)
#536287
Tritanopia (blue-blind)
#AA2B54
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #a1218a;
/* rgb */ color: rgb(161, 33, 138);
/* oklch */ color: oklch(49.8% 0.194 336.8);
Tailwind
colors: {
  custom: {
    50: '#c16cac',
    500: '#a1218a',
    950: '#000000',
  },
}
SCSS
$custom: #a1218a;
$custom-light: #c16cac;
$custom-dark: #000000;
JSON
{
  "hex": "#a1218a",
  "rgb": {
    "r": 161,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 310.781,
    "s": 65.979,
    "l": 38.039
  },
  "oklch": {
    "l": 0.49767,
    "c": 0.19449,
    "h": 336.8
  },
  "luminance": 0.105
}

Semantic roles & 50–950 ramp

primary
#A1218A
secondary
#5BC36E
accent
#E95D3F
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #A1218A

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

Preview Lab → · Contrast checker → · Palette generator →

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