#A1178B#A1178B

#A1178B is a mid, highly saturated purple. Relative luminance 0.101; OKLCH L 49.2% C 0.203 H 336.2°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#A1178B
RGBrgb(161, 23, 139)
HSLhsl(310, 75%, 36%)
HSVhsv(310, 86%, 63%)
CMYKcmyk(0%, 85.7%, 13.7%, 36.9%)
CIE-LABlab(37.94, 63.21, -29.99)
CIE-LCHlch(37.94, 69.97, 334.62°)
OKLaboklab(49.22% 0.186 -0.0819)
OKLCHoklch(49.22% 0.203 336.2)
XYZxyz(19.6649, 10.0559, 25.3264)
Luminance0.1005 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1178B #17A12D
analogous
#7217A1 #A1178B #A11746
triadic
#A1178B #8BA117 #178BA1
tetradic
#A1178B #A17217 #17A12D #1746A1
square
#A1178B #A17217 #17A12D #1746A1
split-complementary
#A1178B #46A117 #17A172
monochromatic
#36082F #6B0F5D #A1178B #D71FB9 #E64DCD

Accessibility & contrast

On white

6.97
#A1178B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#A1178B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A1178B
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A1178B#FFFFFF#000000##FFFFFF
##A1178B1.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4C8E
Deuteranopia (green-blind)
#506088
Tritanopia (blue-blind)
#AA2553
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #a1178b;
/* rgb */ color: rgb(161, 23, 139);
/* oklch */ color: oklch(49.2% 0.203 336.2);
Tailwind
colors: {
  custom: {
    50: '#c169ad',
    500: '#a1178b',
    950: '#000000',
  },
}
SCSS
$custom: #a1178b;
$custom-light: #c169ad;
$custom-dark: #000000;
JSON
{
  "hex": "#a1178b",
  "rgb": {
    "r": 161,
    "g": 23,
    "b": 139
  },
  "hsl": {
    "h": 309.565,
    "s": 75,
    "l": 36.078
  },
  "oklch": {
    "l": 0.49221,
    "c": 0.20327,
    "h": 336.2
  },
  "luminance": 0.10054
}

Semantic roles & 50–950 ramp

primary
#A1178B
secondary
#4CC760
accent
#F25436
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #A1178B

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

Preview Lab → · Contrast checker → · Palette generator →

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