#8A316D#8A316D

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

Color values

HEX#8A316D
RGBrgb(138, 49, 109)
HSLhsl(320, 48%, 37%)
HSVhsv(320, 64%, 54%)
CMYKcmyk(0%, 64.5%, 21%, 45.9%)
CIE-LABlab(35.41, 44.58, -15.54)
CIE-LCHlch(35.41, 47.21, 340.78°)
OKLaboklab(46.15% 0.1334 -0.0415)
OKLCHoklch(46.15% 0.14 342.7)
XYZxyz(14.3403, 8.7053, 15.3901)
Luminance0.0870 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A316D #318A4E
analogous
#7B318A #8A316D #8A3140
triadic
#8A316D #6D8A31 #316D8A
tetradic
#8A316D #8A7B31 #318A4E #31408A
square
#8A316D #8A7B31 #318A4E #31408A
split-complementary
#8A316D #408A31 #318A7B
monochromatic
#301126 #5D2149 #8A316D #B74191 #CA6BAB

Accessibility & contrast

On white

7.66
#8A316D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#8A316D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A316D
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A316D#FFFFFF#000000##FFFFFF
##8A316D1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#384A6F
Deuteranopia (green-blind)
#52596B
Tritanopia (blue-blind)
#92314A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a316d;
/* rgb */ color: rgb(138, 49, 109);
/* oklch */ color: oklch(46.2% 0.140 342.7);
Tailwind
colors: {
  custom: {
    50: '#af6f97',
    500: '#8a316d',
    950: '#000000',
  },
}
SCSS
$custom: #8a316d;
$custom-light: #af6f97;
$custom-dark: #000000;
JSON
{
  "hex": "#8a316d",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 109
  },
  "hsl": {
    "h": 319.551,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.46153,
    "c": 0.13967,
    "h": 342.7
  },
  "luminance": 0.08704
}

Semantic roles & 50–950 ramp

primary
#8A316D
secondary
#65B27E
accent
#D77C51
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11080D
muted
#807B7E

Preview Lab

Preview with #8A316D

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

Preview Lab → · Contrast checker → · Palette generator →

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