#8B319B#8B319B

#8B319B is a mid, vivid purple. Relative luminance 0.101; OKLCH L 48.8% C 0.178 H 321.3°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#8B319B
RGBrgb(139, 49, 155)
HSLhsl(291, 52%, 40%)
HSVhsv(291, 68%, 61%)
CMYKcmyk(10.3%, 68.4%, 0%, 39.2%)
CIE-LABlab(37.94, 52.83, -40.00)
CIE-LCHlch(37.94, 66.26, 322.87°)
OKLaboklab(48.79% 0.1392 -0.1117)
OKLCHoklch(48.79% 0.178 321.3)
XYZxyz(17.6615, 10.0531, 32.0141)
Luminance0.1005 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B319B #419B31
analogous
#56319B #8B319B #9B3176
triadic
#8B319B #9B8B31 #319B8B
tetradic
#8B319B #9B5631 #419B31 #31769B
square
#8B319B #9B5631 #419B31 #31769B
split-complementary
#8B319B #769B31 #319B56
monochromatic
#38143E #61226D #8B319B #B145C4 #C473D3

Accessibility & contrast

On white

6.98
#8B319B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#8B319B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B319B
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B319B#FFFFFF#000000##FFFFFF
##8B319B1.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E539E
Deuteranopia (green-blind)
#3D5D98
Tritanopia (blue-blind)
#8C4362
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8b319b;
/* rgb */ color: rgb(139, 49, 155);
/* oklch */ color: oklch(48.8% 0.178 321.3);
Tailwind
colors: {
  custom: {
    50: '#b071b9',
    500: '#8b319b',
    950: '#000000',
  },
}
SCSS
$custom: #8b319b;
$custom-light: #b071b9;
$custom-dark: #000000;
JSON
{
  "hex": "#8b319b",
  "rgb": {
    "r": 139,
    "g": 49,
    "b": 155
  },
  "hsl": {
    "h": 290.943,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.48789,
    "c": 0.17846,
    "h": 321.3
  },
  "luminance": 0.10052
}

Semantic roles & 50–950 ramp

primary
#8B319B
secondary
#79BB6D
accent
#DB4C62
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8B319B

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

Preview Lab → · Contrast checker → · Palette generator →

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