#8A3156#8A3156

#8A3156 is a mid, vivid pink. Relative luminance 0.083; OKLCH L 45.2% C 0.127 H 357.7°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#8A3156
RGBrgb(138, 49, 86)
HSLhsl(335, 48%, 37%)
HSVhsv(335, 64%, 54%)
CMYKcmyk(0%, 64.5%, 37.7%, 45.9%)
CIE-LABlab(34.55, 41.45, -2.18)
CIE-LCHlch(34.55, 41.51, 356.99°)
OKLaboklab(45.23% 0.1266 -0.0052)
OKLCHoklch(45.23% 0.127 357.7)
XYZxyz(13.2600, 8.2733, 9.7009)
Luminance0.0827 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3156 #318A65
analogous
#8A3183 #8A3156 #8A3831
triadic
#8A3156 #568A31 #31568A
tetradic
#8A3156 #838A31 #318A65 #38318A
square
#8A3156 #838A31 #318A65 #38318A
split-complementary
#8A3156 #318A38 #31838A
monochromatic
#30111E #5D213A #8A3156 #B74172 #CA6B93

Accessibility & contrast

On white

7.91
#8A3156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#8A3156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3156
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3156#FFFFFF#000000##FFFFFF
##8A31561.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#404757
Deuteranopia (green-blind)
#585754
Tritanopia (blue-blind)
#952940
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a3156;
/* rgb */ color: rgb(138, 49, 86);
/* oklch */ color: oklch(45.2% 0.127 357.7);
Tailwind
colors: {
  custom: {
    50: '#b06e85',
    500: '#8a3156',
    950: '#000000',
  },
}
SCSS
$custom: #8a3156;
$custom-light: #b06e85;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3156",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 86
  },
  "hsl": {
    "h": 335.056,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.4523,
    "c": 0.12674,
    "h": 357.7
  },
  "luminance": 0.08272
}

Semantic roles & 50–950 ramp

primary
#8A3156
secondary
#65B292
accent
#D79F51
background
#FBF6F8
surface
#F6ECEF
border
#D0C7CA
text
#11080B
muted
#807B7C

Preview Lab

Preview with #8A3156

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

Preview Lab → · Contrast checker → · Palette generator →

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