#8A3152#8A3152

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

Color values

HEX#8A3152
RGBrgb(138, 49, 82)
HSLhsl(338, 48%, 37%)
HSVhsv(338, 64%, 54%)
CMYKcmyk(0%, 64.5%, 40.6%, 45.9%)
CIE-LABlab(34.42, 40.98, 0.21)
CIE-LCHlch(34.42, 40.98, 0.29°)
OKLaboklab(45.09% 0.1252 0.001)
OKLCHoklch(45.09% 0.125 0.5)
XYZxyz(13.1034, 8.2106, 8.8758)
Luminance0.0821 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3152 #318A69
analogous
#8A317F #8A3152 #8A3D31
triadic
#8A3152 #528A31 #31528A
tetradic
#8A3152 #7F8A31 #318A69 #3D318A
square
#8A3152 #7F8A31 #318A69 #3D318A
split-complementary
#8A3152 #318A3D #317F8A
monochromatic
#30111C #5D2137 #8A3152 #B7416D #CA6B8E

Accessibility & contrast

On white

7.95
#8A3152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A3152
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3152#FFFFFF#000000##FFFFFF
##8A31521.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#424653
Deuteranopia (green-blind)
#595750
Tritanopia (blue-blind)
#95283E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a3152;
/* rgb */ color: rgb(138, 49, 82);
/* oklch */ color: oklch(45.1% 0.125 0.5);
Tailwind
colors: {
  custom: {
    50: '#b06e82',
    500: '#8a3152',
    950: '#000000',
  },
}
SCSS
$custom: #8a3152;
$custom-light: #b06e82;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3152",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 82
  },
  "hsl": {
    "h": 337.753,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45093,
    "c": 0.1252,
    "h": 0.5
  },
  "luminance": 0.08209
}

Semantic roles & 50–950 ramp

primary
#8A3152
secondary
#65B295
accent
#D7A551
background
#FBF6F7
surface
#F6ECEE
border
#D0C7C9
text
#11070A
muted
#807A7C

Preview Lab

Preview with #8A3152

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

Preview Lab → · Contrast checker → · Palette generator →

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