#8A157F#8A157F

#8A157F is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.6% C 0.185 H 332.7°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#8A157F
RGBrgb(138, 21, 127)
HSLhsl(306, 74%, 31%)
HSVhsv(306, 85%, 54%)
CMYKcmyk(0%, 84.8%, 8%, 45.9%)
CIE-LABlab(32.86, 57.05, -30.85)
CIE-LCHlch(32.86, 64.86, 331.60°)
OKLaboklab(44.6% 0.1645 -0.0849)
OKLCHoklch(44.6% 0.185 332.7)
XYZxyz(14.5803, 7.4732, 20.7491)
Luminance0.0747 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A157F #158A20
analogous
#5A158A #8A157F #8A1544
triadic
#8A157F #7F8A15 #157F8A
tetradic
#8A157F #8A5A15 #158A20 #15448A
square
#8A157F #8A5A15 #158A20 #15448A
split-complementary
#8A157F #448A15 #158A5A
monochromatic
#20051D #550D4E #8A157F #BF1DB0 #E139D1

Accessibility & contrast

On white

8.42
#8A157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A157F
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A157F#FFFFFF#000000##FFFFFF
##8A157F1.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A4382
Deuteranopia (green-blind)
#40537C
Tritanopia (blue-blind)
#90254B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #8a157f;
/* rgb */ color: rgb(138, 21, 127);
/* oklch */ color: oklch(44.6% 0.185 332.7);
Tailwind
colors: {
  custom: {
    50: '#b064a4',
    500: '#8a157f',
    950: '#000000',
  },
}
SCSS
$custom: #8a157f;
$custom-light: #b064a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a157f",
  "rgb": {
    "r": 138,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 305.641,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.44596,
    "c": 0.18515,
    "h": 332.7
  },
  "luminance": 0.07472
}

Semantic roles & 50–950 ramp

primary
#8A157F
secondary
#3DBE49
accent
#F04938
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8A157F

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

Preview Lab → · Contrast checker → · Palette generator →

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