#8A157E#8A157E

#8A157E is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.5% C 0.184 H 333.1°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#8A157E
RGBrgb(138, 21, 126)
HSLhsl(306, 74%, 31%)
HSVhsv(306, 85%, 54%)
CMYKcmyk(0%, 84.8%, 8.7%, 45.9%)
CIE-LABlab(32.80, 56.90, -30.31)
CIE-LCHlch(32.80, 64.47, 331.95°)
OKLaboklab(44.54% 0.1645 -0.0834)
OKLCHoklch(44.54% 0.184 333.1)
XYZxyz(14.5154, 7.4473, 20.4076)
Luminance0.0745 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A157E #158A21
analogous
#5B158A #8A157E #8A1543
triadic
#8A157E #7E8A15 #157E8A
tetradic
#8A157E #8A5B15 #158A21 #15438A
square
#8A157E #8A5B15 #158A21 #15438A
split-complementary
#8A157E #438A15 #158A5B
monochromatic
#20051D #550D4D #8A157E #BF1DAE #E139D0

Accessibility & contrast

On white

8.44
#8A157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#8A157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A157E
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A157E#FFFFFF#000000##FFFFFF
##8A157E1.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4381
Deuteranopia (green-blind)
#41537B
Tritanopia (blue-blind)
#91244B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #8a157e;
/* rgb */ color: rgb(138, 21, 126);
/* oklch */ color: oklch(44.5% 0.184 333.1);
Tailwind
colors: {
  custom: {
    50: '#b064a4',
    500: '#8a157e',
    950: '#000000',
  },
}
SCSS
$custom: #8a157e;
$custom-light: #b064a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a157e",
  "rgb": {
    "r": 138,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 306.154,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.44537,
    "c": 0.18443,
    "h": 333.1
  },
  "luminance": 0.07446
}

Semantic roles & 50–950 ramp

primary
#8A157E
secondary
#3DBE4A
accent
#F04A38
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8A157E

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

Preview Lab → · Contrast checker → · Palette generator →

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