#8A1784#8A1784

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

Color values

HEX#8A1784
RGBrgb(138, 23, 132)
HSLhsl(303, 71%, 32%)
HSVhsv(303, 83%, 54%)
CMYKcmyk(0%, 83.3%, 4.3%, 45.9%)
CIE-LABlab(33.31, 57.35, -33.25)
CIE-LCHlch(33.31, 66.30, 329.90°)
OKLaboklab(45.01% 0.1631 -0.0919)
OKLCHoklch(45.01% 0.187 330.6)
XYZxyz(14.9525, 7.6832, 22.5208)
Luminance0.0768 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1784 #178A1D
analogous
#57178A #8A1784 #8A174B
triadic
#8A1784 #848A17 #17848A
tetradic
#8A1784 #8A5717 #178A1D #174B8A
square
#8A1784 #8A5717 #178A1D #174B8A
split-complementary
#8A1784 #4B8A17 #178A57
monochromatic
#210620 #560E52 #8A1784 #BE20B6 #DF3DD6

Accessibility & contrast

On white

8.28
#8A1784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1784
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1784#FFFFFF#000000##FFFFFF
##8A17841.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014587
Deuteranopia (green-blind)
#3E5481
Tritanopia (blue-blind)
#90294F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8a1784;
/* rgb */ color: rgb(138, 23, 132);
/* oklch */ color: oklch(45.0% 0.187 330.6);
Tailwind
colors: {
  custom: {
    50: '#b065a8',
    500: '#8a1784',
    950: '#000000',
  },
}
SCSS
$custom: #8a1784;
$custom-light: #b065a8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1784",
  "rgb": {
    "r": 138,
    "g": 23,
    "b": 132
  },
  "hsl": {
    "h": 303.13,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.45011,
    "c": 0.18721,
    "h": 330.6
  },
  "luminance": 0.07682
}

Semantic roles & 50–950 ramp

primary
#8A1784
secondary
#3FBE46
accent
#EE433A
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110610
muted
#807A7F

Preview Lab

Preview with #8A1784

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

Preview Lab → · Contrast checker → · Palette generator →

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