#8A187B#8A187B

#8A187B is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.5% C 0.180 H 334.5°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#8A187B
RGBrgb(138, 24, 123)
HSLhsl(308, 70%, 32%)
HSVhsv(308, 83%, 54%)
CMYKcmyk(0%, 82.6%, 10.9%, 45.9%)
CIE-LABlab(32.89, 55.70, -28.29)
CIE-LCHlch(32.89, 62.47, 333.08°)
OKLaboklab(44.55% 0.1623 -0.0775)
OKLCHoklch(44.55% 0.18 334.5)
XYZxyz(14.3832, 7.4879, 19.4229)
Luminance0.0749 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A187B #188A27
analogous
#60188A #8A187B #8A1842
triadic
#8A187B #7B8A18 #187B8A
tetradic
#8A187B #8A6018 #188A27 #18428A
square
#8A187B #8A6018 #188A27 #18428A
split-complementary
#8A187B #428A18 #188A60
monochromatic
#22061E #560F4D #8A187B #BE21A9 #DE3FC9

Accessibility & contrast

On white

8.41
#8A187B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A187B
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A187B#FFFFFF#000000##FFFFFF
##8A187B1.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15437E
Deuteranopia (green-blind)
#435378
Tritanopia (blue-blind)
#91244A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #8a187b;
/* rgb */ color: rgb(138, 24, 123);
/* oklch */ color: oklch(44.5% 0.180 334.5);
Tailwind
colors: {
  custom: {
    50: '#b065a1',
    500: '#8a187b',
    950: '#000000',
  },
}
SCSS
$custom: #8a187b;
$custom-light: #b065a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a187b",
  "rgb": {
    "r": 138,
    "g": 24,
    "b": 123
  },
  "hsl": {
    "h": 307.895,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.44547,
    "c": 0.17984,
    "h": 334.5
  },
  "luminance": 0.07487
}

Semantic roles & 50–950 ramp

primary
#8A187B
secondary
#40BD51
accent
#ED523B
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060F
muted
#807A7E

Preview Lab

Preview with #8A187B

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

Preview Lab → · Contrast checker → · Palette generator →

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