#5B319E#5B319E

#5B319E is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.9% C 0.167 H 296.3°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#5B319E
RGBrgb(91, 49, 158)
HSLhsl(263, 53%, 41%)
HSVhsv(263, 69%, 62%)
CMYKcmyk(42.4%, 69%, 0%, 38%)
CIE-LABlab(31.55, 42.92, -52.44)
CIE-LCHlch(31.55, 67.76, 309.30°)
OKLaboklab(42.88% 0.074 -0.1498)
OKLCHoklch(42.88% 0.167 296.3)
XYZxyz(11.5826, 6.8892, 33.0606)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B319E #749E31
analogous
#313E9E #5B319E #91319E
triadic
#5B319E #9E5B31 #319E5B
tetradic
#5B319E #9E313E #749E31 #319E91
square
#5B319E #9E313E #749E31 #319E91
split-complementary
#5B319E #9E9131 #3E9E31
monochromatic
#251441 #40236F #5B319E #7746C6 #9A75D4

Accessibility & contrast

On white

8.83
#5B319E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5B319E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B319E
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B319E#FFFFFF#000000##FFFFFF
##5B319E1.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA1
Deuteranopia (green-blind)
#00499C
Tritanopia (blue-blind)
#4A4B63
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5b319e;
/* rgb */ color: rgb(91, 49, 158);
/* oklch */ color: oklch(42.9% 0.167 296.3);
Tailwind
colors: {
  custom: {
    50: '#8f6cbb',
    500: '#5b319e',
    950: '#000000',
  },
}
SCSS
$custom: #5b319e;
$custom-light: #8f6cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#5b319e",
  "rgb": {
    "r": 91,
    "g": 49,
    "b": 158
  },
  "hsl": {
    "h": 263.119,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42877,
    "c": 0.16708,
    "h": 296.3
  },
  "luminance": 0.06889
}

Semantic roles & 50–950 ramp

primary
#5B319E
secondary
#9EBC6E
accent
#DC4CA4
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B319E

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

Preview Lab → · Contrast checker → · Palette generator →

#5B319E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva