#8A3170#8A3170

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

Color values

HEX#8A3170
RGBrgb(138, 49, 112)
HSLhsl(318, 48%, 37%)
HSVhsv(318, 64%, 54%)
CMYKcmyk(0%, 64.5%, 18.8%, 45.9%)
CIE-LABlab(35.54, 45.04, -17.24)
CIE-LCHlch(35.54, 48.22, 339.06°)
OKLaboklab(46.29% 0.134 -0.0463)
OKLCHoklch(46.29% 0.142 341)
XYZxyz(14.5045, 8.7711, 16.2552)
Luminance0.0877 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3170 #318A4B
analogous
#78318A #8A3170 #8A3144
triadic
#8A3170 #708A31 #31708A
tetradic
#8A3170 #8A7831 #318A4B #31448A
square
#8A3170 #8A7831 #318A4B #31448A
split-complementary
#8A3170 #448A31 #318A78
monochromatic
#301127 #5D214B #8A3170 #B74195 #CA6BAF

Accessibility & contrast

On white

7.63
#8A3170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#8A3170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3170
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3170#FFFFFF#000000##FFFFFF
##8A31701.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#374A72
Deuteranopia (green-blind)
#51596E
Tritanopia (blue-blind)
#92334C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a3170;
/* rgb */ color: rgb(138, 49, 112);
/* oklch */ color: oklch(46.3% 0.142 341.0);
Tailwind
colors: {
  custom: {
    50: '#af6f99',
    500: '#8a3170',
    950: '#000000',
  },
}
SCSS
$custom: #8a3170;
$custom-light: #af6f99;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3170",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 112
  },
  "hsl": {
    "h": 317.528,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.4629,
    "c": 0.14178,
    "h": 341
  },
  "luminance": 0.0877
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A3170

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

Preview Lab → · Contrast checker → · Palette generator →

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