#8A315B#8A315B

#8A315B is a mid, vivid pink. Relative luminance 0.084; OKLCH L 45.4% C 0.129 H 354.2°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#8A315B
RGBrgb(138, 49, 91)
HSLhsl(332, 48%, 37%)
HSVhsv(332, 64%, 54%)
CMYKcmyk(0%, 64.5%, 34.1%, 45.9%)
CIE-LABlab(34.72, 42.08, -5.14)
CIE-LCHlch(34.72, 42.39, 353.04°)
OKLaboklab(45.41% 0.1283 -0.013)
OKLCHoklch(45.41% 0.129 354.2)
XYZxyz(13.4686, 8.3567, 10.7992)
Luminance0.0835 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A315B #318A60
analogous
#8A3188 #8A315B #8A3331
triadic
#8A315B #5B8A31 #315B8A
tetradic
#8A315B #888A31 #318A60 #33318A
square
#8A315B #888A31 #318A60 #33318A
split-complementary
#8A315B #318A33 #31888A
monochromatic
#30111F #5D213D #8A315B #B74179 #CA6B98

Accessibility & contrast

On white

7.86
#8A315B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#8A315B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A315B
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A315B#FFFFFF#000000##FFFFFF
##8A315B1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F475C
Deuteranopia (green-blind)
#575859
Tritanopia (blue-blind)
#942B42
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a315b;
/* rgb */ color: rgb(138, 49, 91);
/* oklch */ color: oklch(45.4% 0.129 354.2);
Tailwind
colors: {
  custom: {
    50: '#b06f89',
    500: '#8a315b',
    950: '#000000',
  },
}
SCSS
$custom: #8a315b;
$custom-light: #b06f89;
$custom-dark: #000000;
JSON
{
  "hex": "#8a315b",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 91
  },
  "hsl": {
    "h": 331.685,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45411,
    "c": 0.12898,
    "h": 354.2
  },
  "luminance": 0.08355
}

Semantic roles & 50–950 ramp

primary
#8A315B
secondary
#65B28E
accent
#D79851
background
#FBF6F8
surface
#F6ECF0
border
#D0C7CB
text
#11080B
muted
#807B7C

Preview Lab

Preview with #8A315B

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

Preview Lab → · Contrast checker → · Palette generator →

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