#8A1A9E#8A1A9E

#8A1A9E is a mid, highly saturated purple. Relative luminance 0.086; OKLCH L 46.9% C 0.205 H 320.8°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#8A1A9E
RGBrgb(138, 26, 158)
HSLhsl(291, 72%, 36%)
HSVhsv(291, 84%, 62%)
CMYKcmyk(12.7%, 83.5%, 0%, 38%)
CIE-LABlab(35.23, 61.03, -46.17)
CIE-LCHlch(35.23, 76.53, 322.89°)
OKLaboklab(46.89% 0.1587 -0.1296)
OKLCHoklch(46.89% 0.205 320.8)
XYZxyz(17.0215, 8.6116, 33.1068)
Luminance0.0861 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1A9E #2E9E1A
analogous
#481A9E #8A1A9E #9E1A70
triadic
#8A1A9E #9E8A1A #1A9E8A
tetradic
#8A1A9E #9E481A #2E9E1A #1A709E
square
#8A1A9E #9E481A #2E9E1A #1A709E
split-complementary
#8A1A9E #709E1A #1A9E48
monochromatic
#2E0935 #5C1169 #8A1A9E #B823D3 #CC50E2

Accessibility & contrast

On white

7.71
#8A1A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#8A1A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1A9E
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1A9E#FFFFFF#000000##FFFFFF
##8A1A9E1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA1
Deuteranopia (green-blind)
#2B579B
Tritanopia (blue-blind)
#8B385E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a1a9e;
/* rgb */ color: rgb(138, 26, 158);
/* oklch */ color: oklch(46.9% 0.205 320.8);
Tailwind
colors: {
  custom: {
    50: '#b067bb',
    500: '#8a1a9e',
    950: '#000000',
  },
}
SCSS
$custom: #8a1a9e;
$custom-light: #b067bb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1a9e",
  "rgb": {
    "r": 138,
    "g": 26,
    "b": 158
  },
  "hsl": {
    "h": 290.909,
    "s": 71.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.4689,
    "c": 0.2049,
    "h": 320.8
  },
  "luminance": 0.08611
}

Semantic roles & 50–950 ramp

primary
#8A1A9E
secondary
#61C54F
accent
#EE3955
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8A1A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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