#8A3172#8A3172

#8A3172 is a mid, vivid pink. Relative luminance 0.088; OKLCH L 46.4% C 0.143 H 339.8°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#8A3172
RGBrgb(138, 49, 114)
HSLhsl(316, 48%, 37%)
HSVhsv(316, 64%, 54%)
CMYKcmyk(0%, 64.5%, 17.4%, 45.9%)
CIE-LABlab(35.63, 45.35, -18.36)
CIE-LCHlch(35.63, 48.92, 337.96°)
OKLaboklab(46.38% 0.1344 -0.0494)
OKLCHoklch(46.38% 0.143 339.8)
XYZxyz(14.6171, 8.8161, 16.8482)
Luminance0.0882 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3172 #318A49
analogous
#76318A #8A3172 #8A3146
triadic
#8A3172 #728A31 #31728A
tetradic
#8A3172 #8A7631 #318A49 #31468A
square
#8A3172 #8A7631 #318A49 #31468A
split-complementary
#8A3172 #468A31 #318A76
monochromatic
#301127 #5D214D #8A3172 #B74197 #CA6BB1

Accessibility & contrast

On white

7.60
#8A3172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A3172
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3172#FFFFFF#000000##FFFFFF
##8A31721.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#364B74
Deuteranopia (green-blind)
#515970
Tritanopia (blue-blind)
#92334D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a3172;
/* rgb */ color: rgb(138, 49, 114);
/* oklch */ color: oklch(46.4% 0.143 339.8);
Tailwind
colors: {
  custom: {
    50: '#af6f9a',
    500: '#8a3172',
    950: '#000000',
  },
}
SCSS
$custom: #8a3172;
$custom-light: #af6f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3172",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 114
  },
  "hsl": {
    "h": 316.18,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.46383,
    "c": 0.14324,
    "h": 339.8
  },
  "luminance": 0.08815
}

Semantic roles & 50–950 ramp

primary
#8A3172
secondary
#65B27A
accent
#D77551
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11080E
muted
#807B7E

Preview Lab

Preview with #8A3172

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

Preview Lab → · Contrast checker → · Palette generator →

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