#8A1882#8A1882

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

Color values

HEX#8A1882
RGBrgb(138, 24, 130)
HSLhsl(304, 70%, 32%)
HSVhsv(304, 83%, 54%)
CMYKcmyk(0%, 82.6%, 5.8%, 45.9%)
CIE-LABlab(33.28, 56.78, -32.05)
CIE-LCHlch(33.28, 65.21, 330.56°)
OKLaboklab(44.95% 0.1624 -0.0884)
OKLCHoklch(44.95% 0.185 331.4)
XYZxyz(14.8371, 7.6695, 21.8137)
Luminance0.0767 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1882 #188A20
analogous
#59188A #8A1882 #8A1849
triadic
#8A1882 #828A18 #18828A
tetradic
#8A1882 #8A5918 #188A20 #18498A
square
#8A1882 #8A5918 #188A20 #18498A
split-complementary
#8A1882 #498A18 #188A59
monochromatic
#220620 #560F51 #8A1882 #BE21B3 #DE3FD2

Accessibility & contrast

On white

8.29
#8A1882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#8A1882 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1882
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1882#FFFFFF#000000##FFFFFF
##8A18821.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094485
Deuteranopia (green-blind)
#3F547F
Tritanopia (blue-blind)
#90284E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8a1882;
/* rgb */ color: rgb(138, 24, 130);
/* oklch */ color: oklch(45.0% 0.185 331.4);
Tailwind
colors: {
  custom: {
    50: '#b065a7',
    500: '#8a1882',
    950: '#000000',
  },
}
SCSS
$custom: #8a1882;
$custom-light: #b065a7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1882",
  "rgb": {
    "r": 138,
    "g": 24,
    "b": 130
  },
  "hsl": {
    "h": 304.211,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.44953,
    "c": 0.18491,
    "h": 331.4
  },
  "luminance": 0.07668
}

Semantic roles & 50–950 ramp

primary
#8A1882
secondary
#40BD49
accent
#ED473B
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8A1882

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

Preview Lab → · Contrast checker → · Palette generator →

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