#8A157B#8A157B

#8A157B is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.4% C 0.182 H 334.4°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#8A157B
RGBrgb(138, 21, 123)
HSLhsl(308, 74%, 31%)
HSVhsv(308, 85%, 54%)
CMYKcmyk(0%, 84.8%, 10.9%, 45.9%)
CIE-LABlab(32.64, 56.44, -28.69)
CIE-LCHlch(32.64, 63.32, 333.05°)
OKLaboklab(44.36% 0.1645 -0.0787)
OKLCHoklch(44.36% 0.182 334.4)
XYZxyz(14.3247, 7.3710, 19.4034)
Luminance0.0737 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A157B #158A24
analogous
#5E158A #8A157B #8A1540
triadic
#8A157B #7B8A15 #157B8A
tetradic
#8A157B #8A5E15 #158A24 #15408A
square
#8A157B #8A5E15 #158A24 #15408A
split-complementary
#8A157B #408A15 #158A5E
monochromatic
#20051C #550D4C #8A157B #BF1DAA #E139CB

Accessibility & contrast

On white

8.49
#8A157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A157B
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A157B#FFFFFF#000000##FFFFFF
##8A157B1.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12427E
Deuteranopia (green-blind)
#425378
Tritanopia (blue-blind)
#912249
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #8a157b;
/* rgb */ color: rgb(138, 21, 123);
/* oklch */ color: oklch(44.4% 0.182 334.4);
Tailwind
colors: {
  custom: {
    50: '#b064a1',
    500: '#8a157b',
    950: '#000000',
  },
}
SCSS
$custom: #8a157b;
$custom-light: #b064a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a157b",
  "rgb": {
    "r": 138,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 307.692,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.44364,
    "c": 0.18231,
    "h": 334.4
  },
  "luminance": 0.0737
}

Semantic roles & 50–950 ramp

primary
#8A157B
secondary
#3DBE4D
accent
#F04F38
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060F
muted
#807A7E

Preview Lab

Preview with #8A157B

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

Preview Lab → · Contrast checker → · Palette generator →

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