#8A3173#8A3173

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

Color values

HEX#8A3173
RGBrgb(138, 49, 115)
HSLhsl(316, 48%, 37%)
HSVhsv(316, 64%, 54%)
CMYKcmyk(0%, 64.5%, 16.7%, 45.9%)
CIE-LABlab(35.67, 45.51, -18.92)
CIE-LCHlch(35.67, 49.28, 337.42°)
OKLaboklab(46.43% 0.1346 -0.051)
OKLCHoklch(46.43% 0.144 339.2)
XYZxyz(14.6743, 8.8390, 17.1496)
Luminance0.0884 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3173 #318A48
analogous
#75318A #8A3173 #8A3146
triadic
#8A3173 #738A31 #31738A
tetradic
#8A3173 #8A7531 #318A48 #31468A
square
#8A3173 #8A7531 #318A48 #31468A
split-complementary
#8A3173 #468A31 #318A75
monochromatic
#301128 #5D214D #8A3173 #B74199 #CA6BB2

Accessibility & contrast

On white

7.59
#8A3173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#8A3173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3173
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3173#FFFFFF#000000##FFFFFF
##8A31731.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#354B75
Deuteranopia (green-blind)
#505971
Tritanopia (blue-blind)
#92344D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a3173;
/* rgb */ color: rgb(138, 49, 115);
/* oklch */ color: oklch(46.4% 0.144 339.2);
Tailwind
colors: {
  custom: {
    50: '#af6f9b',
    500: '#8a3173',
    950: '#000000',
  },
}
SCSS
$custom: #8a3173;
$custom-light: #af6f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3173",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 115
  },
  "hsl": {
    "h": 315.506,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.4643,
    "c": 0.14397,
    "h": 339.2
  },
  "luminance": 0.08838
}

Semantic roles & 50–950 ramp

primary
#8A3173
secondary
#65B279
accent
#D77351
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11080E
muted
#807B7E

Preview Lab

Preview with #8A3173

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

Preview Lab → · Contrast checker → · Palette generator →

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