#8A1786#8A1786

#8A1786 is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.1% C 0.189 H 329.8°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#8A1786
RGBrgb(138, 23, 134)
HSLhsl(302, 71%, 32%)
HSVhsv(302, 83%, 54%)
CMYKcmyk(0%, 83.3%, 2.9%, 45.9%)
CIE-LABlab(33.43, 57.67, -34.31)
CIE-LCHlch(33.43, 67.11, 329.25°)
OKLaboklab(45.13% 0.1631 -0.095)
OKLCHoklch(45.13% 0.189 329.8)
XYZxyz(15.0906, 7.7385, 23.2485)
Luminance0.0774 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1786 #178A1B
analogous
#55178A #8A1786 #8A174D
triadic
#8A1786 #868A17 #17868A
tetradic
#8A1786 #8A5517 #178A1B #174D8A
square
#8A1786 #8A5517 #178A1B #174D8A
split-complementary
#8A1786 #4D8A17 #178A55
monochromatic
#210620 #560E53 #8A1786 #BE20B9 #DF3DD9

Accessibility & contrast

On white

8.24
#8A1786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#8A1786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1786
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1786#FFFFFF#000000##FFFFFF
##8A17861.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004589
Deuteranopia (green-blind)
#3D5483
Tritanopia (blue-blind)
#8F2A50
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a1786;
/* rgb */ color: rgb(138, 23, 134);
/* oklch */ color: oklch(45.1% 0.189 329.8);
Tailwind
colors: {
  custom: {
    50: '#b065aa',
    500: '#8a1786',
    950: '#000000',
  },
}
SCSS
$custom: #8a1786;
$custom-light: #b065aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1786",
  "rgb": {
    "r": 138,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 302.087,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.45133,
    "c": 0.18869,
    "h": 329.8
  },
  "luminance": 0.07737
}

Semantic roles & 50–950 ramp

primary
#8A1786
secondary
#3FBE44
accent
#EE403A
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110610
muted
#807A7F

Preview Lab

Preview with #8A1786

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

Preview Lab → · Contrast checker → · Palette generator →

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