#A1227F#A1227F

#A1227F is a mid, vivid pink. Relative luminance 0.103; OKLCH L 49.3% C 0.186 H 341.4°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#A1227F
RGBrgb(161, 34, 127)
HSLhsl(316, 65%, 38%)
HSVhsv(316, 79%, 63%)
CMYKcmyk(0%, 78.9%, 21.1%, 36.9%)
CIE-LABlab(38.30, 58.83, -22.03)
CIE-LCHlch(38.30, 62.82, 339.48°)
OKLaboklab(49.28% 0.1766 -0.0593)
OKLCHoklch(49.28% 0.186 341.4)
XYZxyz(19.1014, 10.2554, 21.0481)
Luminance0.1025 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1227F #22A144
analogous
#8322A1 #A1227F #A1223F
triadic
#A1227F #7FA122 #227FA1
tetradic
#A1227F #A18322 #22A144 #223FA1
square
#A1227F #A18322 #22A144 #223FA1
split-complementary
#A1227F #3FA122 #22A183
monochromatic
#3C0D2F #6E1757 #A1227F #D32DA6 #DD60BC

Accessibility & contrast

On white

6.88
#A1227F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#A1227F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A1227F
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A1227F#FFFFFF#000000##FFFFFF
##A1227F1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E4D81
Deuteranopia (green-blind)
#57617C
Tritanopia (blue-blind)
#AB254F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #a1227f;
/* rgb */ color: rgb(161, 34, 127);
/* oklch */ color: oklch(49.3% 0.186 341.4);
Tailwind
colors: {
  custom: {
    50: '#c16ca4',
    500: '#a1227f',
    950: '#000000',
  },
}
SCSS
$custom: #a1227f;
$custom-light: #c16ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#a1227f",
  "rgb": {
    "r": 161,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 316.063,
    "s": 65.128,
    "l": 38.235
  },
  "oklch": {
    "l": 0.49284,
    "c": 0.1863,
    "h": 341.4
  },
  "luminance": 0.10253
}

Semantic roles & 50–950 ramp

primary
#A1227F
secondary
#5DC278
accent
#E86D40
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#13080F
muted
#827A7F

Preview Lab

Preview with #A1227F

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

Preview Lab → · Contrast checker → · Palette generator →

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