#8A3157#8A3157

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

Color values

HEX#8A3157
RGBrgb(138, 49, 87)
HSLhsl(334, 48%, 37%)
HSVhsv(334, 64%, 54%)
CMYKcmyk(0%, 64.5%, 37%, 45.9%)
CIE-LABlab(34.58, 41.57, -2.77)
CIE-LCHlch(34.58, 41.67, 356.18°)
OKLaboklab(45.27% 0.127 -0.0068)
OKLCHoklch(45.27% 0.127 357)
XYZxyz(13.3006, 8.2895, 9.9146)
Luminance0.0829 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3157 #318A64
analogous
#8A3184 #8A3157 #8A3831
triadic
#8A3157 #578A31 #31578A
tetradic
#8A3157 #848A31 #318A64 #38318A
square
#8A3157 #848A31 #318A64 #38318A
split-complementary
#8A3157 #318A38 #31848A
monochromatic
#30111E #5D213B #8A3157 #B74173 #CA6B94

Accessibility & contrast

On white

7.90
#8A3157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A3157
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3157#FFFFFF#000000##FFFFFF
##8A31571.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#404758
Deuteranopia (green-blind)
#585755
Tritanopia (blue-blind)
#952A40
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a3157;
/* rgb */ color: rgb(138, 49, 87);
/* oklch */ color: oklch(45.3% 0.127 357.0);
Tailwind
colors: {
  custom: {
    50: '#b06e86',
    500: '#8a3157',
    950: '#000000',
  },
}
SCSS
$custom: #8a3157;
$custom-light: #b06e86;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3157",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 87
  },
  "hsl": {
    "h": 334.382,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45265,
    "c": 0.12716,
    "h": 357
  },
  "luminance": 0.08288
}

Semantic roles & 50–950 ramp

primary
#8A3157
secondary
#65B291
accent
#D79E51
background
#FBF6F8
surface
#F6ECEF
border
#D0C7CA
text
#11080B
muted
#807B7C

Preview Lab

Preview with #8A3157

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

Preview Lab → · Contrast checker → · Palette generator →

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