#8A1B6B#8A1B6B

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

Color values

HEX#8A1B6B
RGBrgb(138, 27, 107)
HSLhsl(317, 67%, 32%)
HSVhsv(317, 80%, 54%)
CMYKcmyk(0%, 80.4%, 22.5%, 45.9%)
CIE-LABlab(32.37, 52.56, -18.96)
CIE-LCHlch(32.37, 55.88, 340.17°)
OKLaboklab(43.91% 0.1582 -0.0509)
OKLCHoklch(43.91% 0.166 342.2)
XYZxyz(13.5275, 7.2501, 14.5941)
Luminance0.0725 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1B6B #1B8A3A
analogous
#721B8A #8A1B6B #8A1B33
triadic
#8A1B6B #6B8A1B #1B6B8A
tetradic
#8A1B6B #8A721B #1B8A3A #1B338A
square
#8A1B6B #8A721B #1B8A3A #1B338A
split-complementary
#8A1B6B #338A1B #1B8A72
monochromatic
#24071C #571143 #8A1B6B #BD2593 #DB45B1

Accessibility & contrast

On white

8.57
#8A1B6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1B6B
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1B6B#FFFFFF#000000##FFFFFF
##8A1B6B1.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27416D
Deuteranopia (green-blind)
#4A5369
Tritanopia (blue-blind)
#931D41
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #8a1b6b;
/* rgb */ color: rgb(138, 27, 107);
/* oklch */ color: oklch(43.9% 0.166 342.2);
Tailwind
colors: {
  custom: {
    50: '#b06595',
    500: '#8a1b6b',
    950: '#000000',
  },
}
SCSS
$custom: #8a1b6b;
$custom-light: #b06595;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1b6b",
  "rgb": {
    "r": 138,
    "g": 27,
    "b": 107
  },
  "hsl": {
    "h": 316.757,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.43907,
    "c": 0.16618,
    "h": 342.2
  },
  "luminance": 0.07249
}

Semantic roles & 50–950 ramp

primary
#8A1B6B
secondary
#45BC66
accent
#EA6E3E
background
#FBF6F9
surface
#F6EBF1
border
#D0C6CB
text
#11060D
muted
#807A7E

Preview Lab

Preview with #8A1B6B

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

Preview Lab → · Contrast checker → · Palette generator →

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