#A1218B#A1218B

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

Color values

HEX#A1218B
RGBrgb(161, 33, 139)
HSLhsl(310, 66%, 38%)
HSVhsv(310, 80%, 63%)
CMYKcmyk(0%, 79.5%, 13.7%, 36.9%)
CIE-LABlab(38.78, 60.80, -28.68)
CIE-LCHlch(38.78, 67.22, 334.74°)
OKLaboklab(49.82% 0.1788 -0.0782)
OKLCHoklch(49.82% 0.195 336.4)
XYZxyz(19.9024, 10.5307, 25.4056)
Luminance0.1053 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1218B #21A137
analogous
#7721A1 #A1218B #A1214B
triadic
#A1218B #8BA121 #218BA1
tetradic
#A1218B #A17721 #21A137 #214BA1
square
#A1218B #A17721 #21A137 #214BA1
split-complementary
#A1218B #4BA121 #21A177
monochromatic
#3B0C33 #6E175F #A1218B #D42CB7 #DE5EC8

Accessibility & contrast

On white

6.76
#A1218B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#A1218B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A1218B
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A1218B#FFFFFF#000000##FFFFFF
##A1218B1.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244F8E
Deuteranopia (green-blind)
#526288
Tritanopia (blue-blind)
#AA2B55
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #a1218b;
/* rgb */ color: rgb(161, 33, 139);
/* oklch */ color: oklch(49.8% 0.195 336.4);
Tailwind
colors: {
  custom: {
    50: '#c16cad',
    500: '#a1218b',
    950: '#000000',
  },
}
SCSS
$custom: #a1218b;
$custom-light: #c16cad;
$custom-dark: #000000;
JSON
{
  "hex": "#a1218b",
  "rgb": {
    "r": 161,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 310.313,
    "s": 65.979,
    "l": 38.039
  },
  "oklch": {
    "l": 0.49819,
    "c": 0.19517,
    "h": 336.4
  },
  "luminance": 0.10529
}

Semantic roles & 50–950 ramp

primary
#A1218B
secondary
#5BC36D
accent
#E95C3F
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #A1218B

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

Preview Lab → · Contrast checker → · Palette generator →

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