#8E317B#8E317B

#8E317B is a mid, vivid pink. Relative luminance 0.094; OKLCH L 47.4% C 0.153 H 336.7°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#8E317B
RGBrgb(142, 49, 123)
HSLhsl(312, 49%, 37%)
HSVhsv(312, 65%, 56%)
CMYKcmyk(0%, 65.5%, 13.4%, 44.3%)
CIE-LABlab(36.70, 47.92, -22.27)
CIE-LCHlch(36.70, 52.84, 335.07°)
OKLaboklab(47.44% 0.1405 -0.0604)
OKLCHoklch(47.44% 0.153 336.7)
XYZxyz(15.8290, 9.3788, 19.7117)
Luminance0.0938 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E317B #318E44
analogous
#72318E #8E317B #8E314D
triadic
#8E317B #7B8E31 #317B8E
tetradic
#8E317B #8E7231 #318E44 #314D8E
square
#8E317B #8E7231 #318E44 #314D8E
split-complementary
#8E317B #4D8E31 #318E72
monochromatic
#33122C #612154 #8E317B #BB41A2 #CD6DB9

Accessibility & contrast

On white

7.30
#8E317B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#8E317B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E317B
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E317B#FFFFFF#000000##FFFFFF
##8E317B1.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334D7D
Deuteranopia (green-blind)
#505B79
Tritanopia (blue-blind)
#953651
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8e317b;
/* rgb */ color: rgb(142, 49, 123);
/* oklch */ color: oklch(47.4% 0.153 336.7);
Tailwind
colors: {
  custom: {
    50: '#b270a1',
    500: '#8e317b',
    950: '#000000',
  },
}
SCSS
$custom: #8e317b;
$custom-light: #b270a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8e317b",
  "rgb": {
    "r": 142,
    "g": 49,
    "b": 123
  },
  "hsl": {
    "h": 312.258,
    "s": 48.691,
    "l": 37.451
  },
  "oklch": {
    "l": 0.47435,
    "c": 0.15291,
    "h": 336.7
  },
  "luminance": 0.09377
}

Semantic roles & 50–950 ramp

primary
#8E317B
secondary
#67B477
accent
#D86B50
background
#FBF7F9
surface
#F6EDF2
border
#D0C8CC
text
#11080F
muted
#807B7E

Preview Lab

Preview with #8E317B

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

Preview Lab → · Contrast checker → · Palette generator →

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