#8A1886#8A1886

#8A1886 is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.2% C 0.188 H 329.8°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#8A1886
RGBrgb(138, 24, 134)
HSLhsl(302, 70%, 32%)
HSVhsv(302, 83%, 54%)
CMYKcmyk(0%, 82.6%, 2.9%, 45.9%)
CIE-LABlab(33.52, 57.42, -34.17)
CIE-LCHlch(33.52, 66.82, 329.24°)
OKLaboklab(45.19% 0.1623 -0.0946)
OKLCHoklch(45.19% 0.188 329.8)
XYZxyz(15.1109, 7.7790, 23.2553)
Luminance0.0778 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1886 #188A1C
analogous
#55188A #8A1886 #8A184D
triadic
#8A1886 #868A18 #18868A
tetradic
#8A1886 #8A5518 #188A1C #184D8A
square
#8A1886 #8A5518 #188A1C #184D8A
split-complementary
#8A1886 #4D8A18 #188A55
monochromatic
#220621 #560F53 #8A1886 #BE21B9 #DE3FD8

Accessibility & contrast

On white

8.22
#8A1886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#8A1886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1886
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1886#FFFFFF#000000##FFFFFF
##8A18861.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a1886;
/* rgb */ color: rgb(138, 24, 134);
/* oklch */ color: oklch(45.2% 0.188 329.8);
Tailwind
colors: {
  custom: {
    50: '#b065aa',
    500: '#8a1886',
    950: '#000000',
  },
}
SCSS
$custom: #8a1886;
$custom-light: #b065aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1886",
  "rgb": {
    "r": 138,
    "g": 24,
    "b": 134
  },
  "hsl": {
    "h": 302.105,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.45194,
    "c": 0.18787,
    "h": 329.8
  },
  "luminance": 0.07778
}

Semantic roles & 50–950 ramp

primary
#8A1886
secondary
#40BD45
accent
#ED413B
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110610
muted
#807A7F

Preview Lab

Preview with #8A1886

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

Preview Lab → · Contrast checker → · Palette generator →

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