#8A187E#8A187E

#8A187E is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.7% C 0.182 H 333.1°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#8A187E
RGBrgb(138, 24, 126)
HSLhsl(306, 70%, 32%)
HSVhsv(306, 83%, 54%)
CMYKcmyk(0%, 82.6%, 8.7%, 45.9%)
CIE-LABlab(33.06, 56.16, -29.91)
CIE-LCHlch(33.06, 63.63, 331.96°)
OKLaboklab(44.72% 0.1624 -0.0822)
OKLCHoklch(44.72% 0.182 333.1)
XYZxyz(14.5739, 7.5642, 20.4271)
Luminance0.0756 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A187E #188A24
analogous
#5D188A #8A187E #8A1845
triadic
#8A187E #7E8A18 #187E8A
tetradic
#8A187E #8A5D18 #188A24 #18458A
square
#8A187E #8A5D18 #188A24 #18458A
split-complementary
#8A187E #458A18 #188A5D
monochromatic
#22061F #560F4E #8A187E #BE21AE #DE3FCD

Accessibility & contrast

On white

8.36
#8A187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#8A187E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A187E
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A187E#FFFFFF#000000##FFFFFF
##8A187E1.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114481
Deuteranopia (green-blind)
#41537B
Tritanopia (blue-blind)
#91264B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8a187e;
/* rgb */ color: rgb(138, 24, 126);
/* oklch */ color: oklch(44.7% 0.182 333.1);
Tailwind
colors: {
  custom: {
    50: '#b065a4',
    500: '#8a187e',
    950: '#000000',
  },
}
SCSS
$custom: #8a187e;
$custom-light: #b065a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a187e",
  "rgb": {
    "r": 138,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 306.316,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.44718,
    "c": 0.18199,
    "h": 333.1
  },
  "luminance": 0.07563
}

Semantic roles & 50–950 ramp

primary
#8A187E
secondary
#40BD4E
accent
#ED4D3B
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8A187E

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

Preview Lab → · Contrast checker → · Palette generator →

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