#5B319F#5B319F

#5B319F is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.0% C 0.168 H 296.0°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#5B319F
RGBrgb(91, 49, 159)
HSLhsl(263, 53%, 41%)
HSVhsv(263, 69%, 62%)
CMYKcmyk(42.8%, 69.2%, 0%, 37.6%)
CIE-LABlab(31.63, 43.19, -52.91)
CIE-LCHlch(31.63, 68.30, 309.22°)
OKLaboklab(42.96% 0.0739 -0.1512)
OKLCHoklch(42.96% 0.168 296)
XYZxyz(11.6691, 6.9237, 33.5158)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B319F #759F31
analogous
#313E9F #5B319F #92319F
triadic
#5B319F #9F5B31 #319F5B
tetradic
#5B319F #9F313E #759F31 #319F92
square
#5B319F #9F313E #759F31 #319F92
split-complementary
#5B319F #9F9231 #3E9F31
monochromatic
#251441 #402370 #5B319F #7847C6 #9A76D5

Accessibility & contrast

On white

8.81
#5B319F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B319F
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B319F#FFFFFF#000000##FFFFFF
##5B319F1.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA2
Deuteranopia (green-blind)
#00499D
Tritanopia (blue-blind)
#494C64
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5b319f;
/* rgb */ color: rgb(91, 49, 159);
/* oklch */ color: oklch(43.0% 0.168 296.0);
Tailwind
colors: {
  custom: {
    50: '#8f6cbc',
    500: '#5b319f',
    950: '#000000',
  },
}
SCSS
$custom: #5b319f;
$custom-light: #8f6cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b319f",
  "rgb": {
    "r": 91,
    "g": 49,
    "b": 159
  },
  "hsl": {
    "h": 262.909,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42959,
    "c": 0.16827,
    "h": 296
  },
  "luminance": 0.06924
}

Semantic roles & 50–950 ramp

primary
#5B319F
secondary
#9FBD6F
accent
#DC4CA5
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B319F

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

Preview Lab → · Contrast checker → · Palette generator →

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