#A1218D#A1218D

#A1218D is a mid, vivid purple. Relative luminance 0.106; OKLCH L 49.9% C 0.197 H 335.6°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#A1218D
RGBrgb(161, 33, 141)
HSLhsl(309, 66%, 38%)
HSVhsv(309, 80%, 63%)
CMYKcmyk(0%, 79.5%, 12.4%, 36.9%)
CIE-LABlab(38.88, 61.09, -29.75)
CIE-LCHlch(38.88, 67.95, 334.04°)
OKLaboklab(49.93% 0.1789 -0.0813)
OKLCHoklch(49.93% 0.197 335.6)
XYZxyz(20.0498, 10.5897, 26.1822)
Luminance0.1059 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1218D #21A135
analogous
#7521A1 #A1218D #A1214D
triadic
#A1218D #8DA121 #218DA1
tetradic
#A1218D #A17521 #21A135 #214DA1
square
#A1218D #A17521 #21A135 #214DA1
split-complementary
#A1218D #4DA121 #21A175
monochromatic
#3B0C34 #6E1761 #A1218D #D42CB9 #DE5ECA

Accessibility & contrast

On white

6.74
#A1218D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#A1218D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A1218D
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A1218D#FFFFFF#000000##FFFFFF
##A1218D1.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224F90
Deuteranopia (green-blind)
#51628A
Tritanopia (blue-blind)
#A92C56
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a1218d;
/* rgb */ color: rgb(161, 33, 141);
/* oklch */ color: oklch(49.9% 0.197 335.6);
Tailwind
colors: {
  custom: {
    50: '#c16cae',
    500: '#a1218d',
    950: '#000000',
  },
}
SCSS
$custom: #a1218d;
$custom-light: #c16cae;
$custom-dark: #000000;
JSON
{
  "hex": "#a1218d",
  "rgb": {
    "r": 161,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 309.375,
    "s": 65.979,
    "l": 38.039
  },
  "oklch": {
    "l": 0.49926,
    "c": 0.19654,
    "h": 335.6
  },
  "luminance": 0.10588
}

Semantic roles & 50–950 ramp

primary
#A1218D
secondary
#5BC36B
accent
#E9593F
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A1218D

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

Preview Lab → · Contrast checker → · Palette generator →

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