#8A316E#8A316E

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

Color values

HEX#8A316E
RGBrgb(138, 49, 110)
HSLhsl(319, 48%, 37%)
HSVhsv(319, 64%, 54%)
CMYKcmyk(0%, 64.5%, 20.3%, 45.9%)
CIE-LABlab(35.45, 44.73, -16.11)
CIE-LCHlch(35.45, 47.55, 340.20°)
OKLaboklab(46.2% 0.1336 -0.0431)
OKLCHoklch(46.2% 0.14 342.1)
XYZxyz(14.3944, 8.7270, 15.6752)
Luminance0.0873 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A316E #318A4D
analogous
#7A318A #8A316E #8A3142
triadic
#8A316E #6E8A31 #316E8A
tetradic
#8A316E #8A7A31 #318A4D #31428A
square
#8A316E #8A7A31 #318A4D #31428A
split-complementary
#8A316E #428A31 #318A7A
monochromatic
#301126 #5D214A #8A316E #B74192 #CA6BAC

Accessibility & contrast

On white

7.65
#8A316E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A316E
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A316E#FFFFFF#000000##FFFFFF
##8A316E1.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#384A70
Deuteranopia (green-blind)
#52596C
Tritanopia (blue-blind)
#92324B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a316e;
/* rgb */ color: rgb(138, 49, 110);
/* oklch */ color: oklch(46.2% 0.140 342.1);
Tailwind
colors: {
  custom: {
    50: '#af6f97',
    500: '#8a316e',
    950: '#000000',
  },
}
SCSS
$custom: #8a316e;
$custom-light: #af6f97;
$custom-dark: #000000;
JSON
{
  "hex": "#8a316e",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 110
  },
  "hsl": {
    "h": 318.876,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.46198,
    "c": 0.14036,
    "h": 342.1
  },
  "luminance": 0.08726
}

Semantic roles & 50–950 ramp

primary
#8A316E
secondary
#65B27D
accent
#D77B51
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11080D
muted
#807B7E

Preview Lab

Preview with #8A316E

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

Preview Lab → · Contrast checker → · Palette generator →

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