#8A1B7B#8A1B7B

#8A1B7B is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.7% C 0.177 H 334.5°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#8A1B7B
RGBrgb(138, 27, 123)
HSLhsl(308, 67%, 32%)
HSVhsv(308, 80%, 54%)
CMYKcmyk(0%, 80.4%, 10.9%, 45.9%)
CIE-LABlab(33.18, 54.89, -27.84)
CIE-LCHlch(33.18, 61.54, 333.10°)
OKLaboklab(44.75% 0.1599 -0.0763)
OKLCHoklch(44.75% 0.177 334.5)
XYZxyz(14.4485, 7.6185, 19.4446)
Luminance0.0762 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1B7B #1B8A2A
analogous
#621B8A #8A1B7B #8A1B44
triadic
#8A1B7B #7B8A1B #1B7B8A
tetradic
#8A1B7B #8A621B #1B8A2A #1B448A
square
#8A1B7B #8A621B #1B8A2A #1B448A
split-complementary
#8A1B7B #448A1B #1B8A62
monochromatic
#240720 #57114D #8A1B7B #BD25A9 #DB45C6

Accessibility & contrast

On white

8.32
#8A1B7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#8A1B7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1B7B
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1B7B#FFFFFF#000000##FFFFFF
##8A1B7B1.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19447E
Deuteranopia (green-blind)
#445478
Tritanopia (blue-blind)
#91264A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8a1b7b;
/* rgb */ color: rgb(138, 27, 123);
/* oklch */ color: oklch(44.7% 0.177 334.5);
Tailwind
colors: {
  custom: {
    50: '#b066a1',
    500: '#8a1b7b',
    950: '#000000',
  },
}
SCSS
$custom: #8a1b7b;
$custom-light: #b066a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1b7b",
  "rgb": {
    "r": 138,
    "g": 27,
    "b": 123
  },
  "hsl": {
    "h": 308.108,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.44749,
    "c": 0.17712,
    "h": 334.5
  },
  "luminance": 0.07617
}

Semantic roles & 50–950 ramp

primary
#8A1B7B
secondary
#45BC55
accent
#EA553E
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060F
muted
#807A7E

Preview Lab

Preview with #8A1B7B

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

Preview Lab → · Contrast checker → · Palette generator →

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