#8A3151#8A3151

#8A3151 is a mid, vivid pink. Relative luminance 0.082; OKLCH L 45.1% C 0.125 H 1.2°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#8A3151
RGBrgb(138, 49, 81)
HSLhsl(338, 48%, 37%)
HSVhsv(338, 64%, 54%)
CMYKcmyk(0%, 64.5%, 41.3%, 45.9%)
CIE-LABlab(34.39, 40.86, 0.81)
CIE-LCHlch(34.39, 40.87, 1.13°)
OKLaboklab(45.06% 0.1248 0.0026)
OKLCHoklch(45.06% 0.125 1.2)
XYZxyz(13.0656, 8.1955, 8.6768)
Luminance0.0819 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3151 #318A6A
analogous
#8A317E #8A3151 #8A3E31
triadic
#8A3151 #518A31 #31518A
tetradic
#8A3151 #7E8A31 #318A6A #3E318A
square
#8A3151 #7E8A31 #318A6A #3E318A
split-complementary
#8A3151 #318A3E #317E8A
monochromatic
#30111C #5D2136 #8A3151 #B7416C #CA6B8D

Accessibility & contrast

On white

7.96
#8A3151 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#8A3151 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3151
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3151#FFFFFF#000000##FFFFFF
##8A31511.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#424652
Deuteranopia (green-blind)
#59574F
Tritanopia (blue-blind)
#95283E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a3151;
/* rgb */ color: rgb(138, 49, 81);
/* oklch */ color: oklch(45.1% 0.125 1.2);
Tailwind
colors: {
  custom: {
    50: '#b06e81',
    500: '#8a3151',
    950: '#000000',
  },
}
SCSS
$custom: #8a3151;
$custom-light: #b06e81;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3151",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 81
  },
  "hsl": {
    "h": 338.427,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.4506,
    "c": 0.12486,
    "h": 1.2
  },
  "luminance": 0.08194
}

Semantic roles & 50–950 ramp

primary
#8A3151
secondary
#65B296
accent
#D7A751
background
#FBF6F7
surface
#F6ECEE
border
#D0C7C9
text
#11070A
muted
#807A7C

Preview Lab

Preview with #8A3151

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

Preview Lab → · Contrast checker → · Palette generator →

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