#8A157C#8A157C

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

Color values

HEX#8A157C
RGBrgb(138, 21, 124)
HSLhsl(307, 74%, 31%)
HSVhsv(307, 85%, 54%)
CMYKcmyk(0%, 84.8%, 10.1%, 45.9%)
CIE-LABlab(32.69, 56.59, -29.23)
CIE-LCHlch(32.69, 63.70, 332.68°)
OKLaboklab(44.42% 0.1645 -0.0802)
OKLCHoklch(44.42% 0.183 334)
XYZxyz(14.3876, 7.3962, 19.7347)
Luminance0.0740 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A157C #158A23
analogous
#5D158A #8A157C #8A1541
triadic
#8A157C #7C8A15 #157C8A
tetradic
#8A157C #8A5D15 #158A23 #15418A
square
#8A157C #8A5D15 #158A23 #15418A
split-complementary
#8A157C #418A15 #158A5D
monochromatic
#20051D #550D4C #8A157C #BF1DAC #E139CD

Accessibility & contrast

On white

8.47
#8A157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A157C
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A157C#FFFFFF#000000##FFFFFF
##8A157C1.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10427F
Deuteranopia (green-blind)
#425379
Tritanopia (blue-blind)
#91234A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #8a157c;
/* rgb */ color: rgb(138, 21, 124);
/* oklch */ color: oklch(44.4% 0.183 334.0);
Tailwind
colors: {
  custom: {
    50: '#b064a2',
    500: '#8a157c',
    950: '#000000',
  },
}
SCSS
$custom: #8a157c;
$custom-light: #b064a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a157c",
  "rgb": {
    "r": 138,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 307.179,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.44421,
    "c": 0.18301,
    "h": 334
  },
  "luminance": 0.07395
}

Semantic roles & 50–950 ramp

primary
#8A157C
secondary
#3DBE4C
accent
#F04E38
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8A157C

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

Preview Lab → · Contrast checker → · Palette generator →

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