#8B317F#8B317F

#8B317F is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.2% C 0.154 H 333.4°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#8B317F
RGBrgb(139, 49, 127)
HSLhsl(308, 48%, 37%)
HSVhsv(308, 65%, 55%)
CMYKcmyk(0%, 64.7%, 8.6%, 45.5%)
CIE-LABlab(36.40, 47.75, -25.27)
CIE-LCHlch(36.40, 54.02, 332.11°)
OKLaboklab(47.18% 0.1377 -0.069)
OKLCHoklch(47.18% 0.154 333.4)
XYZxyz(15.5766, 9.2191, 21.0336)
Luminance0.0922 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B317F #318B3D
analogous
#6A318B #8B317F #8B3152
triadic
#8B317F #7F8B31 #317F8B
tetradic
#8B317F #8B6A31 #318B3D #31528B
square
#8B317F #8B6A31 #318B3D #31528B
split-complementary
#8B317F #528B31 #318B6A
monochromatic
#31112C #5E2156 #8B317F #B841A8 #CB6BBE

Accessibility & contrast

On white

7.39
#8B317F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#8B317F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B317F
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B317F#FFFFFF#000000##FFFFFF
##8B317F1.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4D81
Deuteranopia (green-blind)
#4C5A7D
Tritanopia (blue-blind)
#913853
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8b317f;
/* rgb */ color: rgb(139, 49, 127);
/* oklch */ color: oklch(47.2% 0.154 333.4);
Tailwind
colors: {
  custom: {
    50: '#b070a4',
    500: '#8b317f',
    950: '#000000',
  },
}
SCSS
$custom: #8b317f;
$custom-light: #b070a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8b317f",
  "rgb": {
    "r": 139,
    "g": 49,
    "b": 127
  },
  "hsl": {
    "h": 308,
    "s": 47.872,
    "l": 36.863
  },
  "oklch": {
    "l": 0.47181,
    "c": 0.15405,
    "h": 333.4
  },
  "luminance": 0.09218
}

Semantic roles & 50–950 ramp

primary
#8B317F
secondary
#65B270
accent
#D76250
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8B317F

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

Preview Lab → · Contrast checker → · Palette generator →

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