#A1218F#A1218F

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

Color values

HEX#A1218F
RGBrgb(161, 33, 143)
HSLhsl(308, 66%, 38%)
HSVhsv(308, 80%, 63%)
CMYKcmyk(0%, 79.5%, 11.2%, 36.9%)
CIE-LABlab(38.98, 61.38, -30.81)
CIE-LCHlch(38.98, 68.68, 333.35°)
OKLaboklab(50.03% 0.1791 -0.0843)
OKLCHoklch(50.03% 0.198 334.8)
XYZxyz(20.2000, 10.6498, 26.9730)
Luminance0.1065 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1218F #21A133
analogous
#7321A1 #A1218F #A1214F
triadic
#A1218F #8FA121 #218FA1
tetradic
#A1218F #A17321 #21A133 #214FA1
square
#A1218F #A17321 #21A133 #214FA1
split-complementary
#A1218F #4FA121 #21A173
monochromatic
#3B0C35 #6E1762 #A1218F #D42CBC #DE5ECC

Accessibility & contrast

On white

6.71
#A1218F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#A1218F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A1218F
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A1218F#FFFFFF#000000##FFFFFF
##A1218F1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5092
Deuteranopia (green-blind)
#51628C
Tritanopia (blue-blind)
#A92D57
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #a1218f;
/* rgb */ color: rgb(161, 33, 143);
/* oklch */ color: oklch(50.0% 0.198 334.8);
Tailwind
colors: {
  custom: {
    50: '#c16cb0',
    500: '#a1218f',
    950: '#000000',
  },
}
SCSS
$custom: #a1218f;
$custom-light: #c16cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#a1218f",
  "rgb": {
    "r": 161,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 308.438,
    "s": 65.979,
    "l": 38.039
  },
  "oklch": {
    "l": 0.50034,
    "c": 0.19793,
    "h": 334.8
  },
  "luminance": 0.10648
}

Semantic roles & 50–950 ramp

primary
#A1218F
secondary
#5BC36A
accent
#E9573F
background
#FCF7FA
surface
#F8EDF5
border
#D1C8CF
text
#130810
muted
#827B7F

Preview Lab

Preview with #A1218F

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

Preview Lab → · Contrast checker → · Palette generator →

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