#8A157D#8A157D

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

Color values

HEX#8A157D
RGBrgb(138, 21, 125)
HSLhsl(307, 74%, 31%)
HSVhsv(307, 85%, 54%)
CMYKcmyk(0%, 84.8%, 9.4%, 45.9%)
CIE-LABlab(32.75, 56.74, -29.77)
CIE-LCHlch(32.75, 64.08, 332.31°)
OKLaboklab(44.48% 0.1645 -0.0818)
OKLCHoklch(44.48% 0.184 333.6)
XYZxyz(14.4512, 7.4216, 20.0695)
Luminance0.0742 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A157D #158A22
analogous
#5C158A #8A157D #8A1542
triadic
#8A157D #7D8A15 #157D8A
tetradic
#8A157D #8A5C15 #158A22 #15428A
square
#8A157D #8A5C15 #158A22 #15428A
split-complementary
#8A157D #428A15 #158A5C
monochromatic
#20051D #550D4D #8A157D #BF1DAD #E139CE

Accessibility & contrast

On white

8.45
#8A157D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#8A157D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A157D
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A157D#FFFFFF#000000##FFFFFF
##8A157D1.008.452.488.45
#FFFFFF8.451.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a157d;
/* rgb */ color: rgb(138, 21, 125);
/* oklch */ color: oklch(44.5% 0.184 333.6);
Tailwind
colors: {
  custom: {
    50: '#b064a3',
    500: '#8a157d',
    950: '#000000',
  },
}
SCSS
$custom: #8a157d;
$custom-light: #b064a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a157d",
  "rgb": {
    "r": 138,
    "g": 21,
    "b": 125
  },
  "hsl": {
    "h": 306.667,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.44479,
    "c": 0.18373,
    "h": 333.6
  },
  "luminance": 0.0742
}

Semantic roles & 50–950 ramp

primary
#8A157D
secondary
#3DBE4B
accent
#F04C38
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8A157D

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

Preview Lab → · Contrast checker → · Palette generator →

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