#8A3176#8A3176

#8A3176 is a mid, vivid pink. Relative luminance 0.089; OKLCH L 46.6% C 0.146 H 337.6°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#8A3176
RGBrgb(138, 49, 118)
HSLhsl(313, 48%, 37%)
HSVhsv(313, 64%, 54%)
CMYKcmyk(0%, 64.5%, 14.5%, 45.9%)
CIE-LABlab(35.81, 45.98, -20.59)
CIE-LCHlch(35.81, 50.38, 335.88°)
OKLaboklab(46.58% 0.1352 -0.0557)
OKLCHoklch(46.58% 0.146 337.6)
XYZxyz(14.8498, 8.9092, 18.0736)
Luminance0.0891 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3176 #318A45
analogous
#72318A #8A3176 #8A314A
triadic
#8A3176 #768A31 #31768A
tetradic
#8A3176 #8A7231 #318A45 #314A8A
square
#8A3176 #8A7231 #318A45 #314A8A
split-complementary
#8A3176 #4A8A31 #318A72
monochromatic
#301129 #5D214F #8A3176 #B7419D #CA6BB5

Accessibility & contrast

On white

7.55
#8A3176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#8A3176 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3176
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3176#FFFFFF#000000##FFFFFF
##8A31761.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#344B78
Deuteranopia (green-blind)
#4F5974
Tritanopia (blue-blind)
#91354F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a3176;
/* rgb */ color: rgb(138, 49, 118);
/* oklch */ color: oklch(46.6% 0.146 337.6);
Tailwind
colors: {
  custom: {
    50: '#af6f9d',
    500: '#8a3176',
    950: '#000000',
  },
}
SCSS
$custom: #8a3176;
$custom-light: #af6f9d;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3176",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 118
  },
  "hsl": {
    "h": 313.483,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.46575,
    "c": 0.14624,
    "h": 337.6
  },
  "luminance": 0.08908
}

Semantic roles & 50–950 ramp

primary
#8A3176
secondary
#65B276
accent
#D76F51
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11080E
muted
#807B7E

Preview Lab

Preview with #8A3176

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

Preview Lab → · Contrast checker → · Palette generator →

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