#A1218E#A1218E

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

Color values

HEX#A1218E
RGBrgb(161, 33, 142)
HSLhsl(309, 66%, 38%)
HSVhsv(309, 80%, 63%)
CMYKcmyk(0%, 79.5%, 11.8%, 36.9%)
CIE-LABlab(38.93, 61.23, -30.28)
CIE-LCHlch(38.93, 68.31, 333.69°)
OKLaboklab(49.98% 0.179 -0.0828)
OKLCHoklch(49.98% 0.197 335.2)
XYZxyz(20.1246, 10.6196, 26.5758)
Luminance0.1062 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1218E #21A134
analogous
#7421A1 #A1218E #A1214E
triadic
#A1218E #8EA121 #218EA1
tetradic
#A1218E #A17421 #21A134 #214EA1
square
#A1218E #A17421 #21A134 #214EA1
split-complementary
#A1218E #4EA121 #21A174
monochromatic
#3B0C34 #6E1761 #A1218E #D42CBB #DE5ECB

Accessibility & contrast

On white

6.72
#A1218E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A1218E
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A1218E#FFFFFF#000000##FFFFFF
##A1218E1.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215091
Deuteranopia (green-blind)
#51628B
Tritanopia (blue-blind)
#A92D57
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a1218e;
/* rgb */ color: rgb(161, 33, 142);
/* oklch */ color: oklch(50.0% 0.197 335.2);
Tailwind
colors: {
  custom: {
    50: '#c16caf',
    500: '#a1218e',
    950: '#000000',
  },
}
SCSS
$custom: #a1218e;
$custom-light: #c16caf;
$custom-dark: #000000;
JSON
{
  "hex": "#a1218e",
  "rgb": {
    "r": 161,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 308.906,
    "s": 65.979,
    "l": 38.039
  },
  "oklch": {
    "l": 0.4998,
    "c": 0.19724,
    "h": 335.2
  },
  "luminance": 0.10618
}

Semantic roles & 50–950 ramp

primary
#A1218E
secondary
#5BC36A
accent
#E9583F
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A1218E

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

Preview Lab → · Contrast checker → · Palette generator →

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