#8A1881#8A1881

#8A1881 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.9% C 0.184 H 331.9°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#8A1881
RGBrgb(138, 24, 129)
HSLhsl(305, 70%, 32%)
HSVhsv(305, 83%, 54%)
CMYKcmyk(0%, 82.6%, 6.5%, 45.9%)
CIE-LABlab(33.23, 56.63, -31.52)
CIE-LCHlch(33.23, 64.81, 330.90°)
OKLaboklab(44.89% 0.1624 -0.0869)
OKLCHoklch(44.89% 0.184 331.9)
XYZxyz(14.7704, 7.6428, 21.4619)
Luminance0.0764 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1881 #188A21
analogous
#5A188A #8A1881 #8A1848
triadic
#8A1881 #818A18 #18818A
tetradic
#8A1881 #8A5A18 #188A21 #18488A
square
#8A1881 #8A5A18 #188A21 #18488A
split-complementary
#8A1881 #488A18 #188A5A
monochromatic
#220620 #560F50 #8A1881 #BE21B2 #DE3FD1

Accessibility & contrast

On white

8.31
#8A1881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1881
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1881#FFFFFF#000000##FFFFFF
##8A18811.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4484
Deuteranopia (green-blind)
#40547E
Tritanopia (blue-blind)
#90284D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8a1881;
/* rgb */ color: rgb(138, 24, 129);
/* oklch */ color: oklch(44.9% 0.184 331.9);
Tailwind
colors: {
  custom: {
    50: '#b065a6',
    500: '#8a1881',
    950: '#000000',
  },
}
SCSS
$custom: #8a1881;
$custom-light: #b065a6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1881",
  "rgb": {
    "r": 138,
    "g": 24,
    "b": 129
  },
  "hsl": {
    "h": 304.737,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.44894,
    "c": 0.18418,
    "h": 331.9
  },
  "luminance": 0.07642
}

Semantic roles & 50–950 ramp

primary
#8A1881
secondary
#40BD4A
accent
#ED493B
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8A1881

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

Preview Lab → · Contrast checker → · Palette generator →

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