#8A1982#8A1982

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

Color values

HEX#8A1982
RGBrgb(138, 25, 130)
HSLhsl(304, 69%, 32%)
HSVhsv(304, 82%, 54%)
CMYKcmyk(0%, 81.9%, 5.8%, 45.9%)
CIE-LABlab(33.37, 56.52, -31.91)
CIE-LCHlch(33.37, 64.91, 330.55°)
OKLaboklab(45.02% 0.1616 -0.088)
OKLCHoklch(45.02% 0.184 331.4)
XYZxyz(14.8581, 7.7115, 21.8207)
Luminance0.0771 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1982 #198A21
analogous
#5A198A #8A1982 #8A194A
triadic
#8A1982 #828A19 #19828A
tetradic
#8A1982 #8A5A19 #198A21 #194A8A
square
#8A1982 #8A5A19 #198A21 #194A8A
split-complementary
#8A1982 #4A8A19 #198A5A
monochromatic
#220620 #561051 #8A1982 #BE22B3 #DD41D2

Accessibility & contrast

On white

8.26
#8A1982 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#8A1982 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1982
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1982#FFFFFF#000000##FFFFFF
##8A19821.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4585
Deuteranopia (green-blind)
#40547F
Tritanopia (blue-blind)
#90294E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8a1982;
/* rgb */ color: rgb(138, 25, 130);
/* oklch */ color: oklch(45.0% 0.184 331.4);
Tailwind
colors: {
  custom: {
    50: '#b065a7',
    500: '#8a1982',
    950: '#000000',
  },
}
SCSS
$custom: #8a1982;
$custom-light: #b065a7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1982",
  "rgb": {
    "r": 138,
    "g": 25,
    "b": 130
  },
  "hsl": {
    "h": 304.248,
    "s": 69.325,
    "l": 31.961
  },
  "oklch": {
    "l": 0.45017,
    "c": 0.18405,
    "h": 331.4
  },
  "luminance": 0.0771
}

Semantic roles & 50–950 ramp

primary
#8A1982
secondary
#42BD4A
accent
#EC483C
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8A1982

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

Preview Lab → · Contrast checker → · Palette generator →

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