#8A1B7E#8A1B7E

#8A1B7E is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.9% C 0.179 H 333.2°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#8A1B7E
RGBrgb(138, 27, 126)
HSLhsl(306, 67%, 32%)
HSVhsv(306, 80%, 54%)
CMYKcmyk(0%, 80.4%, 8.7%, 45.9%)
CIE-LABlab(33.34, 55.35, -29.47)
CIE-LCHlch(33.34, 62.70, 331.97°)
OKLaboklab(44.92% 0.16 -0.081)
OKLCHoklch(44.92% 0.179 333.2)
XYZxyz(14.6392, 7.6948, 20.4489)
Luminance0.0769 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1B7E #1B8A27
analogous
#5E1B8A #8A1B7E #8A1B47
triadic
#8A1B7E #7E8A1B #1B7E8A
tetradic
#8A1B7E #8A5E1B #1B8A27 #1B478A
square
#8A1B7E #8A5E1B #1B8A27 #1B478A
split-complementary
#8A1B7E #478A1B #1B8A5E
monochromatic
#240721 #57114F #8A1B7E #BD25AD #DB45CA

Accessibility & contrast

On white

8.27
#8A1B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1B7E
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1B7E#FFFFFF#000000##FFFFFF
##8A1B7E1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154481
Deuteranopia (green-blind)
#42547B
Tritanopia (blue-blind)
#90284C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8a1b7e;
/* rgb */ color: rgb(138, 27, 126);
/* oklch */ color: oklch(44.9% 0.179 333.2);
Tailwind
colors: {
  custom: {
    50: '#b066a4',
    500: '#8a1b7e',
    950: '#000000',
  },
}
SCSS
$custom: #8a1b7e;
$custom-light: #b066a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1b7e",
  "rgb": {
    "r": 138,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 306.486,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.44919,
    "c": 0.1793,
    "h": 333.2
  },
  "luminance": 0.07693
}

Semantic roles & 50–950 ramp

primary
#8A1B7E
secondary
#45BC52
accent
#EA503E
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A1B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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