#8A1788#8A1788

#8A1788 is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.3% C 0.190 H 329.0°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#8A1788
RGBrgb(138, 23, 136)
HSLhsl(301, 71%, 32%)
HSVhsv(301, 83%, 54%)
CMYKcmyk(0%, 83.3%, 1.4%, 45.9%)
CIE-LABlab(33.55, 58.00, -35.36)
CIE-LCHlch(33.55, 67.93, 328.63°)
OKLaboklab(45.26% 0.163 -0.098)
OKLCHoklch(45.26% 0.19 329)
XYZxyz(15.2314, 7.7948, 23.9901)
Luminance0.0779 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1788 #178A19
analogous
#53178A #8A1788 #8A174F
triadic
#8A1788 #888A17 #17888A
tetradic
#8A1788 #8A5317 #178A19 #174F8A
square
#8A1788 #8A5317 #178A19 #174F8A
split-complementary
#8A1788 #4F8A17 #178A53
monochromatic
#210621 #560E54 #8A1788 #BE20BC #DF3DDC

Accessibility & contrast

On white

8.21
#8A1788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#8A1788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1788
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1788#FFFFFF#000000##FFFFFF
##8A17881.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458B
Deuteranopia (green-blind)
#3C5485
Tritanopia (blue-blind)
#8F2B51
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a1788;
/* rgb */ color: rgb(138, 23, 136);
/* oklch */ color: oklch(45.3% 0.190 329.0);
Tailwind
colors: {
  custom: {
    50: '#b065ab',
    500: '#8a1788',
    950: '#000000',
  },
}
SCSS
$custom: #8a1788;
$custom-light: #b065ab;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1788",
  "rgb": {
    "r": 138,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 301.043,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.45257,
    "c": 0.19019,
    "h": 329
  },
  "luminance": 0.07794
}

Semantic roles & 50–950 ramp

primary
#8A1788
secondary
#3FBE41
accent
#EE3D3A
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110610
muted
#807A7F

Preview Lab

Preview with #8A1788

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

Preview Lab → · Contrast checker → · Palette generator →

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