#8A1778#8A1778

#8A1778 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.3% C 0.179 H 335.8°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#8A1778
RGBrgb(138, 23, 120)
HSLhsl(309, 71%, 32%)
HSVhsv(309, 83%, 54%)
CMYKcmyk(0%, 83.3%, 13%, 45.9%)
CIE-LABlab(32.64, 55.51, -26.79)
CIE-LCHlch(32.64, 61.63, 334.24°)
OKLaboklab(44.32% 0.1629 -0.0732)
OKLCHoklch(44.32% 0.179 335.8)
XYZxyz(14.1780, 7.3735, 18.4422)
Luminance0.0737 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1778 #178A29
analogous
#63178A #8A1778 #8A173F
triadic
#8A1778 #788A17 #17788A
tetradic
#8A1778 #8A6317 #178A29 #173F8A
square
#8A1778 #8A6317 #178A29 #173F8A
split-complementary
#8A1778 #3F8A17 #178A63
monochromatic
#21061D #560E4A #8A1778 #BE20A6 #DF3DC5

Accessibility & contrast

On white

8.49
#8A1778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#8A1778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1778
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1778#FFFFFF#000000##FFFFFF
##8A17781.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18427A
Deuteranopia (green-blind)
#445375
Tritanopia (blue-blind)
#912248
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #8a1778;
/* rgb */ color: rgb(138, 23, 120);
/* oklch */ color: oklch(44.3% 0.179 335.8);
Tailwind
colors: {
  custom: {
    50: '#b0649f',
    500: '#8a1778',
    950: '#000000',
  },
}
SCSS
$custom: #8a1778;
$custom-light: #b0649f;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1778",
  "rgb": {
    "r": 138,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 309.391,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.44315,
    "c": 0.17858,
    "h": 335.8
  },
  "luminance": 0.07372
}

Semantic roles & 50–950 ramp

primary
#8A1778
secondary
#3FBE53
accent
#EE563A
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060E
muted
#807A7E

Preview Lab

Preview with #8A1778

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

Preview Lab → · Contrast checker → · Palette generator →

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