#8A3174#8A3174

#8A3174 is a mid, vivid pink. Relative luminance 0.089; OKLCH L 46.5% C 0.145 H 338.7°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#8A3174
RGBrgb(138, 49, 116)
HSLhsl(315, 48%, 37%)
HSVhsv(315, 64%, 54%)
CMYKcmyk(0%, 64.5%, 15.9%, 45.9%)
CIE-LABlab(35.72, 45.66, -19.48)
CIE-LCHlch(35.72, 49.64, 336.90°)
OKLaboklab(46.48% 0.1348 -0.0526)
OKLCHoklch(46.48% 0.145 338.7)
XYZxyz(14.7322, 8.8621, 17.4543)
Luminance0.0886 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3174 #318A47
analogous
#74318A #8A3174 #8A3148
triadic
#8A3174 #748A31 #31748A
tetradic
#8A3174 #8A7431 #318A47 #31488A
square
#8A3174 #8A7431 #318A47 #31488A
split-complementary
#8A3174 #488A31 #318A74
monochromatic
#301128 #5D214E #8A3174 #B7419A #CA6BB3

Accessibility & contrast

On white

7.58
#8A3174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A3174
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3174#FFFFFF#000000##FFFFFF
##8A31741.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#354B76
Deuteranopia (green-blind)
#505972
Tritanopia (blue-blind)
#92344E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a3174;
/* rgb */ color: rgb(138, 49, 116);
/* oklch */ color: oklch(46.5% 0.145 338.7);
Tailwind
colors: {
  custom: {
    50: '#af6f9c',
    500: '#8a3174',
    950: '#000000',
  },
}
SCSS
$custom: #8a3174;
$custom-light: #af6f9c;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3174",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 116
  },
  "hsl": {
    "h": 314.831,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.46478,
    "c": 0.14472,
    "h": 338.7
  },
  "luminance": 0.08861
}

Semantic roles & 50–950 ramp

primary
#8A3174
secondary
#65B278
accent
#D77251
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11080E
muted
#807B7E

Preview Lab

Preview with #8A3174

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

Preview Lab → · Contrast checker → · Palette generator →

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