#8A1B7F#8A1B7F

#8A1B7F is a dark, vivid purple. Relative luminance 0.077; OKLCH L 45.0% C 0.180 H 332.7°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#8A1B7F
RGBrgb(138, 27, 127)
HSLhsl(306, 67%, 32%)
HSVhsv(306, 80%, 54%)
CMYKcmyk(0%, 80.4%, 8%, 45.9%)
CIE-LABlab(33.39, 55.51, -30.01)
CIE-LCHlch(33.39, 63.10, 331.61°)
OKLaboklab(44.98% 0.16 -0.0825)
OKLCHoklch(44.98% 0.18 332.7)
XYZxyz(14.7040, 7.7207, 20.7904)
Luminance0.0772 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1B7F #1B8A26
analogous
#5E1B8A #8A1B7F #8A1B47
triadic
#8A1B7F #7F8A1B #1B7F8A
tetradic
#8A1B7F #8A5E1B #1B8A26 #1B478A
square
#8A1B7F #8A5E1B #1B8A26 #1B478A
split-complementary
#8A1B7F #478A1B #1B8A5E
monochromatic
#240721 #571150 #8A1B7F #BD25AE #DB45CC

Accessibility & contrast

On white

8.26
#8A1B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#8A1B7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1B7F
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1B7F#FFFFFF#000000##FFFFFF
##8A1B7F1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144582
Deuteranopia (green-blind)
#42547C
Tritanopia (blue-blind)
#90284D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a1b7f;
/* rgb */ color: rgb(138, 27, 127);
/* oklch */ color: oklch(45.0% 0.180 332.7);
Tailwind
colors: {
  custom: {
    50: '#b066a4',
    500: '#8a1b7f',
    950: '#000000',
  },
}
SCSS
$custom: #8a1b7f;
$custom-light: #b066a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1b7f",
  "rgb": {
    "r": 138,
    "g": 27,
    "b": 127
  },
  "hsl": {
    "h": 305.946,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.44976,
    "c": 0.18003,
    "h": 332.7
  },
  "luminance": 0.07719
}

Semantic roles & 50–950 ramp

primary
#8A1B7F
secondary
#45BC51
accent
#EA4F3E
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A1B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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