#5B31BF#5B31BF

#5B31BF is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.7% C 0.205 H 289.1°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#5B31BF
RGBrgb(91, 49, 191)
HSLhsl(258, 59%, 47%)
HSVhsv(258, 74%, 75%)
CMYKcmyk(52.4%, 74.3%, 0%, 25.1%)
CIE-LABlab(34.36, 52.02, -67.56)
CIE-LCHlch(34.36, 85.26, 307.60°)
OKLaboklab(45.74% 0.0672 -0.1942)
OKLCHoklch(45.74% 0.205 289.1)
XYZxyz(14.8139, 8.1817, 50.0788)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B31BF #95BF31
analogous
#314EBF #5B31BF #A231BF
triadic
#5B31BF #BF5B31 #31BF5B
tetradic
#5B31BF #BF314E #95BF31 #31BFA2
square
#5B31BF #BF314E #95BF31 #31BFA2
split-complementary
#5B31BF #BFA231 #4EBF31
monochromatic
#2D185E #44258E #5B31BF #7D59D4 #A38AE1

Accessibility & contrast

On white

7.97
#5B31BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5B31BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B31BF
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B31BF#FFFFFF#000000##FFFFFF
##5B31BF1.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C3
Deuteranopia (green-blind)
#004DBC
Tritanopia (blue-blind)
#355876
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5b31bf;
/* rgb */ color: rgb(91, 49, 191);
/* oklch */ color: oklch(45.7% 0.205 289.1);
Tailwind
colors: {
  custom: {
    50: '#936ed3',
    500: '#5b31bf',
    950: '#000000',
  },
}
SCSS
$custom: #5b31bf;
$custom-light: #936ed3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b31bf",
  "rgb": {
    "r": 91,
    "g": 49,
    "b": 191
  },
  "hsl": {
    "h": 257.746,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.45735,
    "c": 0.20548,
    "h": 289.1
  },
  "luminance": 0.08182
}

Semantic roles & 50–950 ramp

primary
#5B31BF
secondary
#B5CB81
accent
#E245B4
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5B31BF

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

Preview Lab → · Contrast checker → · Palette generator →

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