#A1218C#A1218C

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

Color values

HEX#A1218C
RGBrgb(161, 33, 140)
HSLhsl(310, 66%, 38%)
HSVhsv(310, 80%, 63%)
CMYKcmyk(0%, 79.5%, 13%, 36.9%)
CIE-LABlab(38.83, 60.94, -29.21)
CIE-LCHlch(38.83, 67.58, 334.39°)
OKLaboklab(49.87% 0.1789 -0.0798)
OKLCHoklch(49.87% 0.196 336)
XYZxyz(19.9758, 10.5601, 25.7921)
Luminance0.1056 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1218C #21A136
analogous
#7621A1 #A1218C #A1214C
triadic
#A1218C #8CA121 #218CA1
tetradic
#A1218C #A17621 #21A136 #214CA1
square
#A1218C #A17621 #21A136 #214CA1
split-complementary
#A1218C #4CA121 #21A176
monochromatic
#3B0C34 #6E1760 #A1218C #D42CB8 #DE5EC9

Accessibility & contrast

On white

6.75
#A1218C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A1218C
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A1218C#FFFFFF#000000##FFFFFF
##A1218C1.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234F8F
Deuteranopia (green-blind)
#526289
Tritanopia (blue-blind)
#AA2C55
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #a1218c;
/* rgb */ color: rgb(161, 33, 140);
/* oklch */ color: oklch(49.9% 0.196 336.0);
Tailwind
colors: {
  custom: {
    50: '#c16cae',
    500: '#a1218c',
    950: '#000000',
  },
}
SCSS
$custom: #a1218c;
$custom-light: #c16cae;
$custom-dark: #000000;
JSON
{
  "hex": "#a1218c",
  "rgb": {
    "r": 161,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 309.844,
    "s": 65.979,
    "l": 38.039
  },
  "oklch": {
    "l": 0.49872,
    "c": 0.19585,
    "h": 336
  },
  "luminance": 0.10558
}

Semantic roles & 50–950 ramp

primary
#A1218C
secondary
#5BC36C
accent
#E95B3F
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #A1218C

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

Preview Lab → · Contrast checker → · Palette generator →

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