#8A316F#8A316F

#8A316F is a mid, vivid pink. Relative luminance 0.087; OKLCH L 46.2% C 0.141 H 341.5°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#8A316F
RGBrgb(138, 49, 111)
HSLhsl(318, 48%, 37%)
HSVhsv(318, 64%, 54%)
CMYKcmyk(0%, 64.5%, 19.6%, 45.9%)
CIE-LABlab(35.50, 44.89, -16.67)
CIE-LCHlch(35.50, 47.88, 339.62°)
OKLaboklab(46.24% 0.1338 -0.0447)
OKLCHoklch(46.24% 0.141 341.5)
XYZxyz(14.4492, 8.7489, 15.9636)
Luminance0.0875 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A316F #318A4C
analogous
#79318A #8A316F #8A3143
triadic
#8A316F #6F8A31 #316F8A
tetradic
#8A316F #8A7931 #318A4C #31438A
square
#8A316F #8A7931 #318A4C #31438A
split-complementary
#8A316F #438A31 #318A79
monochromatic
#301126 #5D214B #8A316F #B74193 #CA6BAD

Accessibility & contrast

On white

7.64
#8A316F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#8A316F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A316F
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A316F#FFFFFF#000000##FFFFFF
##8A316F1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#374A71
Deuteranopia (green-blind)
#52596D
Tritanopia (blue-blind)
#92324B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a316f;
/* rgb */ color: rgb(138, 49, 111);
/* oklch */ color: oklch(46.2% 0.141 341.5);
Tailwind
colors: {
  custom: {
    50: '#af6f98',
    500: '#8a316f',
    950: '#000000',
  },
}
SCSS
$custom: #8a316f;
$custom-light: #af6f98;
$custom-dark: #000000;
JSON
{
  "hex": "#8a316f",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 111
  },
  "hsl": {
    "h": 318.202,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.46244,
    "c": 0.14107,
    "h": 341.5
  },
  "luminance": 0.08748
}

Semantic roles & 50–950 ramp

primary
#8A316F
secondary
#65B27C
accent
#D77951
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11080D
muted
#807B7E

Preview Lab

Preview with #8A316F

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

Preview Lab → · Contrast checker → · Palette generator →

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