#8A187C#8A187C

#8A187C is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.6% C 0.181 H 334.0°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#8A187C
RGBrgb(138, 24, 124)
HSLhsl(307, 70%, 32%)
HSVhsv(307, 83%, 54%)
CMYKcmyk(0%, 82.6%, 10.1%, 45.9%)
CIE-LABlab(32.95, 55.85, -28.83)
CIE-LCHlch(32.95, 62.85, 332.70°)
OKLaboklab(44.6% 0.1623 -0.0791)
OKLCHoklch(44.6% 0.181 334)
XYZxyz(14.4461, 7.5131, 19.7542)
Luminance0.0751 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A187C #188A26
analogous
#5F188A #8A187C #8A1843
triadic
#8A187C #7C8A18 #187C8A
tetradic
#8A187C #8A5F18 #188A26 #18438A
square
#8A187C #8A5F18 #188A26 #18438A
split-complementary
#8A187C #438A18 #188A5F
monochromatic
#22061E #560F4D #8A187C #BE21AB #DE3FCA

Accessibility & contrast

On white

8.39
#8A187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#8A187C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A187C
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A187C#FFFFFF#000000##FFFFFF
##8A187C1.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14437F
Deuteranopia (green-blind)
#425379
Tritanopia (blue-blind)
#91254A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #8a187c;
/* rgb */ color: rgb(138, 24, 124);
/* oklch */ color: oklch(44.6% 0.181 334.0);
Tailwind
colors: {
  custom: {
    50: '#b065a2',
    500: '#8a187c',
    950: '#000000',
  },
}
SCSS
$custom: #8a187c;
$custom-light: #b065a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a187c",
  "rgb": {
    "r": 138,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 307.368,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.44603,
    "c": 0.18055,
    "h": 334
  },
  "luminance": 0.07512
}

Semantic roles & 50–950 ramp

primary
#8A187C
secondary
#40BD50
accent
#ED513B
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8A187C

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

Preview Lab → · Contrast checker → · Palette generator →

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