#8A3271#8A3271

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

Color values

HEX#8A3271
RGBrgb(138, 50, 113)
HSLhsl(317, 47%, 37%)
HSVhsv(317, 64%, 54%)
CMYKcmyk(0%, 63.8%, 18.1%, 45.9%)
CIE-LABlab(35.75, 44.74, -17.54)
CIE-LCHlch(35.75, 48.06, 338.59°)
OKLaboklab(46.46% 0.1329 -0.0471)
OKLCHoklch(46.46% 0.141 340.5)
XYZxyz(14.6028, 8.8780, 16.5641)
Luminance0.0888 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3271 #328A4B
analogous
#77328A #8A3271 #8A3245
triadic
#8A3271 #718A32 #32718A
tetradic
#8A3271 #8A7732 #328A4B #32458A
square
#8A3271 #8A7732 #328A4B #32458A
split-complementary
#8A3271 #458A32 #328A77
monochromatic
#301127 #5D224C #8A3271 #B74296 #CA6CAF

Accessibility & contrast

On white

7.57
#8A3271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#8A3271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3271
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3271#FFFFFF#000000##FFFFFF
##8A32711.007.572.787.57
#FFFFFF7.571.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#374B73
Deuteranopia (green-blind)
#51596F
Tritanopia (blue-blind)
#92344D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a3271;
/* rgb */ color: rgb(138, 50, 113);
/* oklch */ color: oklch(46.5% 0.141 340.5);
Tailwind
colors: {
  custom: {
    50: '#af709a',
    500: '#8a3271',
    950: '#000000',
  },
}
SCSS
$custom: #8a3271;
$custom-light: #af709a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3271",
  "rgb": {
    "r": 138,
    "g": 50,
    "b": 113
  },
  "hsl": {
    "h": 317.045,
    "s": 46.809,
    "l": 36.863
  },
  "oklch": {
    "l": 0.46457,
    "c": 0.14099,
    "h": 340.5
  },
  "luminance": 0.08877
}

Semantic roles & 50–950 ramp

primary
#8A3271
secondary
#66B27C
accent
#D67751
background
#FBF7F9
surface
#F6EDF2
border
#D0C8CC
text
#11080E
muted
#807B7E

Preview Lab

Preview with #8A3271

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

Preview Lab → · Contrast checker → · Palette generator →

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