#5B319D#5B319D

#5B319D is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.8% C 0.166 H 296.6°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#5B319D
RGBrgb(91, 49, 157)
HSLhsl(263, 52%, 40%)
HSVhsv(263, 69%, 62%)
CMYKcmyk(42%, 68.8%, 0%, 38.4%)
CIE-LABlab(31.47, 42.65, -51.96)
CIE-LCHlch(31.47, 67.22, 309.38°)
OKLaboklab(42.8% 0.0742 -0.1484)
OKLCHoklch(42.8% 0.166 296.6)
XYZxyz(11.4969, 6.8549, 32.6091)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B319D #739D31
analogous
#313D9D #5B319D #91319D
triadic
#5B319D #9D5B31 #319D5B
tetradic
#5B319D #9D313D #739D31 #319D91
square
#5B319D #9D313D #739D31 #319D91
split-complementary
#5B319D #9D9131 #3D9D31
monochromatic
#251440 #40226E #5B319D #7746C5 #9A75D4

Accessibility & contrast

On white

8.86
#5B319D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5B319D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B319D
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B319D#FFFFFF#000000##FFFFFF
##5B319D1.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b319d;
/* rgb */ color: rgb(91, 49, 157);
/* oklch */ color: oklch(42.8% 0.166 296.6);
Tailwind
colors: {
  custom: {
    50: '#8f6cbb',
    500: '#5b319d',
    950: '#000000',
  },
}
SCSS
$custom: #5b319d;
$custom-light: #8f6cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#5b319d",
  "rgb": {
    "r": 91,
    "g": 49,
    "b": 157
  },
  "hsl": {
    "h": 263.333,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42795,
    "c": 0.16589,
    "h": 296.6
  },
  "luminance": 0.06855
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B319D

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

Preview Lab → · Contrast checker → · Palette generator →

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