#8A3971#8A3971

#8A3971 is a mid, vivid pink. Relative luminance 0.095; OKLCH L 47.4% C 0.130 H 341.2°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#8A3971
RGBrgb(138, 57, 113)
HSLhsl(319, 42%, 38%)
HSVhsv(319, 59%, 54%)
CMYKcmyk(0%, 58.7%, 18.1%, 45.9%)
CIE-LABlab(36.97, 41.42, -15.66)
CIE-LCHlch(36.97, 44.29, 339.29°)
OKLaboklab(47.36% 0.1229 -0.0419)
OKLCHoklch(47.36% 0.13 341.2)
XYZxyz(14.9253, 9.5230, 16.6716)
Luminance0.0952 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3971 #398A52
analogous
#7A398A #8A3971 #8A3948
triadic
#8A3971 #718A39 #39718A
tetradic
#8A3971 #8A7A39 #398A52 #39488A
square
#8A3971 #8A7A39 #398A52 #39488A
split-complementary
#8A3971 #488A39 #398A7A
monochromatic
#33152A #5F274E #8A3971 #B54B94 #C777AE

Accessibility & contrast

On white

7.23
#8A3971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#8A3971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3971
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3971#FFFFFF#000000##FFFFFF
##8A39711.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E4F73
Deuteranopia (green-blind)
#555C6F
Tritanopia (blue-blind)
#923A50
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a3971;
/* rgb */ color: rgb(138, 57, 113);
/* oklch */ color: oklch(47.4% 0.130 341.2);
Tailwind
colors: {
  custom: {
    50: '#af749a',
    500: '#8a3971',
    950: '#000000',
  },
}
SCSS
$custom: #8a3971;
$custom-light: #af749a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3971",
  "rgb": {
    "r": 138,
    "g": 57,
    "b": 113
  },
  "hsl": {
    "h": 318.519,
    "s": 41.538,
    "l": 38.235
  },
  "oklch": {
    "l": 0.47359,
    "c": 0.12988,
    "h": 341.2
  },
  "luminance": 0.09522
}

Semantic roles & 50–950 ramp

primary
#8A3971
secondary
#6FB083
accent
#D17C56
background
#FBF7F9
surface
#F6EDF2
border
#D0C8CC
text
#11080E
muted
#807B7E

Preview Lab

Preview with #8A3971

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

Preview Lab → · Contrast checker → · Palette generator →

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