#8A3158#8A3158

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

Color values

HEX#8A3158
RGBrgb(138, 49, 88)
HSLhsl(334, 48%, 37%)
HSVhsv(334, 64%, 54%)
CMYKcmyk(0%, 64.5%, 36.2%, 45.9%)
CIE-LABlab(34.61, 41.70, -3.37)
CIE-LCHlch(34.61, 41.83, 355.38°)
OKLaboklab(45.3% 0.1273 -0.0083)
OKLCHoklch(45.3% 0.128 356.3)
XYZxyz(13.3417, 8.3059, 10.1312)
Luminance0.0830 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3158 #318A63
analogous
#8A3185 #8A3158 #8A3731
triadic
#8A3158 #588A31 #31588A
tetradic
#8A3158 #858A31 #318A63 #37318A
square
#8A3158 #858A31 #318A63 #37318A
split-complementary
#8A3158 #318A37 #31858A
monochromatic
#30111E #5D213B #8A3158 #B74175 #CA6B95

Accessibility & contrast

On white

7.89
#8A3158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A3158
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3158#FFFFFF#000000##FFFFFF
##8A31581.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#404759
Deuteranopia (green-blind)
#585856
Tritanopia (blue-blind)
#952A41
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a3158;
/* rgb */ color: rgb(138, 49, 88);
/* oklch */ color: oklch(45.3% 0.128 356.3);
Tailwind
colors: {
  custom: {
    50: '#b06f87',
    500: '#8a3158',
    950: '#000000',
  },
}
SCSS
$custom: #8a3158;
$custom-light: #b06f87;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3158",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 88
  },
  "hsl": {
    "h": 333.708,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45301,
    "c": 0.12759,
    "h": 356.3
  },
  "luminance": 0.08304
}

Semantic roles & 50–950 ramp

primary
#8A3158
secondary
#65B290
accent
#D79C51
background
#FBF6F8
surface
#F6ECEF
border
#D0C7CA
text
#11080B
muted
#807B7C

Preview Lab

Preview with #8A3158

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

Preview Lab → · Contrast checker → · Palette generator →

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