#8A3371#8A3371

#8A3371 is a mid, vivid pink. Relative luminance 0.090; OKLCH L 46.6% C 0.139 H 340.6°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#8A3371
RGBrgb(138, 51, 113)
HSLhsl(317, 46%, 37%)
HSVhsv(317, 63%, 54%)
CMYKcmyk(0%, 63%, 18.1%, 45.9%)
CIE-LABlab(35.92, 44.28, -17.29)
CIE-LCHlch(35.92, 47.54, 338.68°)
OKLaboklab(46.58% 0.1315 -0.0464)
OKLCHoklch(46.58% 0.139 340.6)
XYZxyz(14.6460, 8.9645, 16.5785)
Luminance0.0896 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3371 #338A4C
analogous
#78338A #8A3371 #8A3346
triadic
#8A3371 #718A33 #33718A
tetradic
#8A3371 #8A7833 #338A4C #33468A
square
#8A3371 #8A7833 #338A4C #33468A
split-complementary
#8A3371 #468A33 #338A78
monochromatic
#311228 #5D224C #8A3371 #B74496 #C96EAF

Accessibility & contrast

On white

7.52
#8A3371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#8A3371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3371
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3371#FFFFFF#000000##FFFFFF
##8A33711.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#384C73
Deuteranopia (green-blind)
#525A6F
Tritanopia (blue-blind)
#92354D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a3371;
/* rgb */ color: rgb(138, 51, 113);
/* oklch */ color: oklch(46.6% 0.139 340.6);
Tailwind
colors: {
  custom: {
    50: '#af709a',
    500: '#8a3371',
    950: '#000000',
  },
}
SCSS
$custom: #8a3371;
$custom-light: #af709a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3371",
  "rgb": {
    "r": 138,
    "g": 51,
    "b": 113
  },
  "hsl": {
    "h": 317.241,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.4658,
    "c": 0.13946,
    "h": 340.6
  },
  "luminance": 0.08963
}

Semantic roles & 50–950 ramp

primary
#8A3371
secondary
#67B17D
accent
#D67852
background
#FBF7F9
surface
#F6EDF2
border
#D0C8CC
text
#11080E
muted
#807B7E

Preview Lab

Preview with #8A3371

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

Preview Lab → · Contrast checker → · Palette generator →

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