#8A3159#8A3159

#8A3159 is a mid, vivid pink. Relative luminance 0.083; OKLCH L 45.3% C 0.128 H 355.6°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#8A3159
RGBrgb(138, 49, 89)
HSLhsl(333, 48%, 37%)
HSVhsv(333, 64%, 54%)
CMYKcmyk(0%, 64.5%, 35.5%, 45.9%)
CIE-LABlab(34.65, 41.82, -3.96)
CIE-LCHlch(34.65, 42.01, 354.59°)
OKLaboklab(45.34% 0.1277 -0.0099)
OKLCHoklch(45.34% 0.128 355.6)
XYZxyz(13.3835, 8.3226, 10.3509)
Luminance0.0832 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3159 #318A62
analogous
#8A3186 #8A3159 #8A3631
triadic
#8A3159 #598A31 #31598A
tetradic
#8A3159 #868A31 #318A62 #36318A
square
#8A3159 #868A31 #318A62 #36318A
split-complementary
#8A3159 #318A36 #31868A
monochromatic
#30111F #5D213C #8A3159 #B74176 #CA6B96

Accessibility & contrast

On white

7.88
#8A3159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#8A3159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3159
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3159#FFFFFF#000000##FFFFFF
##8A31591.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#40475A
Deuteranopia (green-blind)
#585857
Tritanopia (blue-blind)
#952A41
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a3159;
/* rgb */ color: rgb(138, 49, 89);
/* oklch */ color: oklch(45.3% 0.128 355.6);
Tailwind
colors: {
  custom: {
    50: '#b06f87',
    500: '#8a3159',
    950: '#000000',
  },
}
SCSS
$custom: #8a3159;
$custom-light: #b06f87;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3159",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 89
  },
  "hsl": {
    "h": 333.034,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45337,
    "c": 0.12804,
    "h": 355.6
  },
  "luminance": 0.08321
}

Semantic roles & 50–950 ramp

primary
#8A3159
secondary
#65B28F
accent
#D79B51
background
#FBF6F8
surface
#F6ECEF
border
#D0C7CA
text
#11080B
muted
#807B7C

Preview Lab

Preview with #8A3159

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

Preview Lab → · Contrast checker → · Palette generator →

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