#8A1782#8A1782

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

Color values

HEX#8A1782
RGBrgb(138, 23, 130)
HSLhsl(304, 71%, 32%)
HSVhsv(304, 83%, 54%)
CMYKcmyk(0%, 83.3%, 5.8%, 45.9%)
CIE-LABlab(33.20, 57.04, -32.19)
CIE-LCHlch(33.20, 65.49, 330.56°)
OKLaboklab(44.89% 0.1631 -0.0888)
OKLCHoklch(44.89% 0.186 331.4)
XYZxyz(14.8169, 7.6290, 21.8069)
Luminance0.0763 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1782 #178A1F
analogous
#59178A #8A1782 #8A1749
triadic
#8A1782 #828A17 #17828A
tetradic
#8A1782 #8A5917 #178A1F #17498A
square
#8A1782 #8A5917 #178A1F #17498A
split-complementary
#8A1782 #498A17 #178A59
monochromatic
#21061F #560E51 #8A1782 #BE20B3 #DF3DD3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A1782#FFFFFF#000000##FFFFFF
##8A17821.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)
#074485
Deuteranopia (green-blind)
#3F537F
Tritanopia (blue-blind)
#90284D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8a1782;
/* rgb */ color: rgb(138, 23, 130);
/* oklch */ color: oklch(44.9% 0.186 331.4);
Tailwind
colors: {
  custom: {
    50: '#b065a7',
    500: '#8a1782',
    950: '#000000',
  },
}
SCSS
$custom: #8a1782;
$custom-light: #b065a7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1782",
  "rgb": {
    "r": 138,
    "g": 23,
    "b": 130
  },
  "hsl": {
    "h": 304.174,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.44891,
    "c": 0.18574,
    "h": 331.4
  },
  "luminance": 0.07628
}

Semantic roles & 50–950 ramp

primary
#8A1782
secondary
#3FBE48
accent
#EE463A
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8A1782

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

Preview Lab → · Contrast checker → · Palette generator →

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