#8A3377#8A3377

#8A3377 is a mid, vivid pink. Relative luminance 0.091; OKLCH L 46.9% C 0.144 H 337.2°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#8A3377
RGBrgb(138, 51, 119)
HSLhsl(313, 46%, 37%)
HSVhsv(313, 63%, 54%)
CMYKcmyk(0%, 63%, 13.8%, 45.9%)
CIE-LABlab(36.18, 45.24, -20.63)
CIE-LCHlch(36.18, 49.72, 335.48°)
OKLaboklab(46.87% 0.1327 -0.0559)
OKLCHoklch(46.87% 0.144 337.2)
XYZxyz(14.9950, 9.1041, 18.4167)
Luminance0.0910 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3377 #338A46
analogous
#71338A #8A3377 #8A334C
triadic
#8A3377 #778A33 #33778A
tetradic
#8A3377 #8A7133 #338A46 #334C8A
square
#8A3377 #8A7133 #338A46 #334C8A
split-complementary
#8A3377 #4C8A33 #338A71
monochromatic
#31122A #5D2250 #8A3377 #B7449E #C96EB5

Accessibility & contrast

On white

7.45
#8A3377 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#8A3377 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3377
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3377#FFFFFF#000000##FFFFFF
##8A33771.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#354D79
Deuteranopia (green-blind)
#505A75
Tritanopia (blue-blind)
#913750
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8a3377;
/* rgb */ color: rgb(138, 51, 119);
/* oklch */ color: oklch(46.9% 0.144 337.2);
Tailwind
colors: {
  custom: {
    50: '#af709e',
    500: '#8a3377',
    950: '#000000',
  },
}
SCSS
$custom: #8a3377;
$custom-light: #af709e;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3377",
  "rgb": {
    "r": 138,
    "g": 51,
    "b": 119
  },
  "hsl": {
    "h": 313.103,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.46865,
    "c": 0.14399,
    "h": 337.2
  },
  "luminance": 0.09103
}

Semantic roles & 50–950 ramp

primary
#8A3377
secondary
#67B178
accent
#D66F52
background
#FBF7F9
surface
#F6EDF2
border
#D0C8CC
text
#11080E
muted
#807B7E

Preview Lab

Preview with #8A3377

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

Preview Lab → · Contrast checker → · Palette generator →

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