#8A157A#8A157A

#8A157A is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.3% C 0.182 H 334.9°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#8A157A
RGBrgb(138, 21, 122)
HSLhsl(308, 74%, 31%)
HSVhsv(308, 85%, 54%)
CMYKcmyk(0%, 84.8%, 11.6%, 45.9%)
CIE-LABlab(32.58, 56.29, -28.15)
CIE-LCHlch(32.58, 62.94, 333.43°)
OKLaboklab(44.31% 0.1644 -0.0771)
OKLCHoklch(44.31% 0.182 334.9)
XYZxyz(14.2624, 7.3461, 19.0754)
Luminance0.0735 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A157A #158A25
analogous
#5F158A #8A157A #8A153F
triadic
#8A157A #7A8A15 #157A8A
tetradic
#8A157A #8A5F15 #158A25 #153F8A
square
#8A157A #8A5F15 #158A25 #153F8A
split-complementary
#8A157A #3F8A15 #158A5F
monochromatic
#20051C #550D4B #8A157A #BF1DA9 #E139CA

Accessibility & contrast

On white

8.51
#8A157A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#8A157A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A157A
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A157A#FFFFFF#000000##FFFFFF
##8A157A1.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13427D
Deuteranopia (green-blind)
#435377
Tritanopia (blue-blind)
#912248
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #8a157a;
/* rgb */ color: rgb(138, 21, 122);
/* oklch */ color: oklch(44.3% 0.182 334.9);
Tailwind
colors: {
  custom: {
    50: '#b064a1',
    500: '#8a157a',
    950: '#000000',
  },
}
SCSS
$custom: #8a157a;
$custom-light: #b064a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a157a",
  "rgb": {
    "r": 138,
    "g": 21,
    "b": 122
  },
  "hsl": {
    "h": 308.205,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.44307,
    "c": 0.18161,
    "h": 334.9
  },
  "luminance": 0.07345
}

Semantic roles & 50–950 ramp

primary
#8A157A
secondary
#3DBE4E
accent
#F05138
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060F
muted
#807A7E

Preview Lab

Preview with #8A157A

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

Preview Lab → · Contrast checker → · Palette generator →

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