#A1217E#A1217E

#A1217E is a mid, vivid pink. Relative luminance 0.102; OKLCH L 49.2% C 0.187 H 341.8°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#A1217E
RGBrgb(161, 33, 126)
HSLhsl(316, 66%, 38%)
HSVhsv(316, 80%, 63%)
CMYKcmyk(0%, 79.5%, 21.7%, 36.9%)
CIE-LABlab(38.15, 58.99, -21.63)
CIE-LCHlch(38.15, 62.83, 339.86°)
OKLaboklab(49.16% 0.1773 -0.0582)
OKLCHoklch(49.16% 0.187 341.8)
XYZxyz(19.0084, 10.1731, 20.6972)
Luminance0.1017 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1217E #21A144
analogous
#8421A1 #A1217E #A1213E
triadic
#A1217E #7EA121 #217EA1
tetradic
#A1217E #A18421 #21A144 #213EA1
square
#A1217E #A18421 #21A144 #213EA1
split-complementary
#A1217E #3EA121 #21A184
monochromatic
#3B0C2F #6E1756 #A1217E #D42CA6 #DE5EBB

Accessibility & contrast

On white

6.92
#A1217E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#A1217E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A1217E
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A1217E#FFFFFF#000000##FFFFFF
##A1217E1.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E4D80
Deuteranopia (green-blind)
#57617B
Tritanopia (blue-blind)
#AB234E
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #a1217e;
/* rgb */ color: rgb(161, 33, 126);
/* oklch */ color: oklch(49.2% 0.187 341.8);
Tailwind
colors: {
  custom: {
    50: '#c16ca3',
    500: '#a1217e',
    950: '#000000',
  },
}
SCSS
$custom: #a1217e;
$custom-light: #c16ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#a1217e",
  "rgb": {
    "r": 161,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 316.406,
    "s": 65.979,
    "l": 38.039
  },
  "oklch": {
    "l": 0.49164,
    "c": 0.18664,
    "h": 341.8
  },
  "luminance": 0.10171
}

Semantic roles & 50–950 ramp

primary
#A1217E
secondary
#5BC377
accent
#E96D3F
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#13080F
muted
#827A7F

Preview Lab

Preview with #A1217E

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

Preview Lab → · Contrast checker → · Palette generator →

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