#8A3171#8A3171

#8A3171 is a mid, vivid pink. Relative luminance 0.088; OKLCH L 46.3% C 0.142 H 340.4°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#8A3171
RGBrgb(138, 49, 113)
HSLhsl(317, 48%, 37%)
HSVhsv(317, 64%, 54%)
CMYKcmyk(0%, 64.5%, 18.1%, 45.9%)
CIE-LABlab(35.58, 45.19, -17.80)
CIE-LCHlch(35.58, 48.57, 338.50°)
OKLaboklab(46.34% 0.1342 -0.0478)
OKLCHoklch(46.34% 0.143 340.4)
XYZxyz(14.5605, 8.7934, 16.5500)
Luminance0.0879 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3171 #318A4A
analogous
#77318A #8A3171 #8A3145
triadic
#8A3171 #718A31 #31718A
tetradic
#8A3171 #8A7731 #318A4A #31458A
square
#8A3171 #8A7731 #318A4A #31458A
split-complementary
#8A3171 #458A31 #318A77
monochromatic
#301127 #5D214C #8A3171 #B74196 #CA6BB0

Accessibility & contrast

On white

7.61
#8A3171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#8A3171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3171
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3171#FFFFFF#000000##FFFFFF
##8A31711.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#364B73
Deuteranopia (green-blind)
#51596F
Tritanopia (blue-blind)
#92334C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a3171;
/* rgb */ color: rgb(138, 49, 113);
/* oklch */ color: oklch(46.3% 0.142 340.4);
Tailwind
colors: {
  custom: {
    50: '#af6f9a',
    500: '#8a3171',
    950: '#000000',
  },
}
SCSS
$custom: #8a3171;
$custom-light: #af6f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3171",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 113
  },
  "hsl": {
    "h": 316.854,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.46336,
    "c": 0.1425,
    "h": 340.4
  },
  "luminance": 0.08792
}

Semantic roles & 50–950 ramp

primary
#8A3171
secondary
#65B27B
accent
#D77651
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11080E
muted
#807B7E

Preview Lab

Preview with #8A3171

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

Preview Lab → · Contrast checker → · Palette generator →

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