#8A1783#8A1783

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

Color values

HEX#8A1783
RGBrgb(138, 23, 131)
HSLhsl(304, 71%, 32%)
HSVhsv(304, 83%, 54%)
CMYKcmyk(0%, 83.3%, 5.1%, 45.9%)
CIE-LABlab(33.26, 57.20, -32.72)
CIE-LCHlch(33.26, 65.89, 330.23°)
OKLaboklab(44.95% 0.1631 -0.0904)
OKLCHoklch(44.95% 0.186 331)
XYZxyz(14.8844, 7.6560, 22.1622)
Luminance0.0766 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1783 #178A1E
analogous
#58178A #8A1783 #8A174A
triadic
#8A1783 #838A17 #17838A
tetradic
#8A1783 #8A5817 #178A1E #174A8A
square
#8A1783 #8A5817 #178A1E #174A8A
split-complementary
#8A1783 #4A8A17 #178A58
monochromatic
#21061F #560E51 #8A1783 #BE20B5 #DF3DD5

Accessibility & contrast

On white

8.30
#8A1783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1783
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1783#FFFFFF#000000##FFFFFF
##8A17831.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a1783;
/* rgb */ color: rgb(138, 23, 131);
/* oklch */ color: oklch(45.0% 0.186 331.0);
Tailwind
colors: {
  custom: {
    50: '#b065a7',
    500: '#8a1783',
    950: '#000000',
  },
}
SCSS
$custom: #8a1783;
$custom-light: #b065a7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1783",
  "rgb": {
    "r": 138,
    "g": 23,
    "b": 131
  },
  "hsl": {
    "h": 303.652,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.44951,
    "c": 0.18648,
    "h": 331
  },
  "luminance": 0.07655
}

Semantic roles & 50–950 ramp

primary
#8A1783
secondary
#3FBE47
accent
#EE453A
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8A1783

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

Preview Lab → · Contrast checker → · Palette generator →

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