#8A316B#8A316B

#8A316B is a mid, vivid pink. Relative luminance 0.087; OKLCH L 46.1% C 0.138 H 343.9°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#8A316B
RGBrgb(138, 49, 107)
HSLhsl(321, 48%, 37%)
HSVhsv(321, 64%, 54%)
CMYKcmyk(0%, 64.5%, 22.5%, 45.9%)
CIE-LABlab(35.33, 44.28, -14.41)
CIE-LCHlch(35.33, 46.57, 341.98°)
OKLaboklab(46.06% 0.1329 -0.0384)
OKLCHoklch(46.06% 0.138 343.9)
XYZxyz(14.2338, 8.6628, 14.8295)
Luminance0.0866 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A316B #318A50
analogous
#7D318A #8A316B #8A313F
triadic
#8A316B #6B8A31 #316B8A
tetradic
#8A316B #8A7D31 #318A50 #313F8A
square
#8A316B #8A7D31 #318A50 #313F8A
split-complementary
#8A316B #3F8A31 #318A7D
monochromatic
#301125 #5D2148 #8A316B #B7418E #CA6BA9

Accessibility & contrast

On white

7.69
#8A316B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#8A316B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A316B
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A316B#FFFFFF#000000##FFFFFF
##8A316B1.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#394A6D
Deuteranopia (green-blind)
#535969
Tritanopia (blue-blind)
#933149
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a316b;
/* rgb */ color: rgb(138, 49, 107);
/* oklch */ color: oklch(46.1% 0.138 343.9);
Tailwind
colors: {
  custom: {
    50: '#af6f95',
    500: '#8a316b',
    950: '#000000',
  },
}
SCSS
$custom: #8a316b;
$custom-light: #af6f95;
$custom-dark: #000000;
JSON
{
  "hex": "#8a316b",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 107
  },
  "hsl": {
    "h": 320.899,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.46063,
    "c": 0.13831,
    "h": 343.9
  },
  "luminance": 0.08661
}

Semantic roles & 50–950 ramp

primary
#8A316B
secondary
#65B280
accent
#D77F51
background
#FBF6F9
surface
#F6ECF1
border
#D0C7CB
text
#11080D
muted
#807B7E

Preview Lab

Preview with #8A316B

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

Preview Lab → · Contrast checker → · Palette generator →

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