#8A1B6A#8A1B6A

#8A1B6A is a dark, vivid pink. Relative luminance 0.072; OKLCH L 43.9% C 0.166 H 342.7°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#8A1B6A
RGBrgb(138, 27, 106)
HSLhsl(317, 67%, 32%)
HSVhsv(317, 80%, 54%)
CMYKcmyk(0%, 80.4%, 23.2%, 45.9%)
CIE-LABlab(32.32, 52.43, -18.39)
CIE-LCHlch(32.32, 55.56, 340.67°)
OKLaboklab(43.86% 0.158 -0.0493)
OKLCHoklch(43.86% 0.166 342.7)
XYZxyz(13.4752, 7.2292, 14.3186)
Luminance0.0723 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1B6A #1B8A3B
analogous
#721B8A #8A1B6A #8A1B33
triadic
#8A1B6A #6A8A1B #1B6A8A
tetradic
#8A1B6A #8A721B #1B8A3B #1B338A
square
#8A1B6A #8A721B #1B8A3B #1B338A
split-complementary
#8A1B6A #338A1B #1B8A72
monochromatic
#24071B #571143 #8A1B6A #BD2591 #DB45AF

Accessibility & contrast

On white

8.59
#8A1B6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#8A1B6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1B6A
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1B6A#FFFFFF#000000##FFFFFF
##8A1B6A1.008.592.458.59
#FFFFFF8.591.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27406C
Deuteranopia (green-blind)
#4B5268
Tritanopia (blue-blind)
#931C41
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #8a1b6a;
/* rgb */ color: rgb(138, 27, 106);
/* oklch */ color: oklch(43.9% 0.166 342.7);
Tailwind
colors: {
  custom: {
    50: '#b06594',
    500: '#8a1b6a',
    950: '#000000',
  },
}
SCSS
$custom: #8a1b6a;
$custom-light: #b06594;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1b6a",
  "rgb": {
    "r": 138,
    "g": 27,
    "b": 106
  },
  "hsl": {
    "h": 317.297,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.43859,
    "c": 0.16554,
    "h": 342.7
  },
  "luminance": 0.07228
}

Semantic roles & 50–950 ramp

primary
#8A1B6A
secondary
#45BC67
accent
#EA6F3E
background
#FBF6F9
surface
#F6EBF1
border
#D0C6CB
text
#11060D
muted
#807A7E

Preview Lab

Preview with #8A1B6A

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

Preview Lab → · Contrast checker → · Palette generator →

#8A1B6A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva