#5B39B7#5B39B7

#5B39B7 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.1% C 0.187 H 289.3°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#5B39B7
RGBrgb(91, 57, 183)
HSLhsl(256, 53%, 47%)
HSVhsv(256, 69%, 72%)
CMYKcmyk(50.3%, 68.9%, 0%, 28.2%)
CIE-LABlab(35.14, 45.64, -61.56)
CIE-LCHlch(35.14, 76.63, 306.55°)
OKLaboklab(46.08% 0.0619 -0.1766)
OKLCHoklch(46.08% 0.187 289.3)
XYZxyz(14.3223, 8.5687, 45.6898)
Luminance0.0857 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B39B7 #95B739
analogous
#3956B7 #5B39B7 #9A39B7
triadic
#5B39B7 #B75B39 #39B75B
tetradic
#5B39B7 #B73956 #95B739 #39B79A
square
#5B39B7 #B73956 #95B739 #39B79A
split-complementary
#5B39B7 #B79A39 #56B739
monochromatic
#2D1C5A #442A88 #5B39B7 #7D60CD #A38EDC

Accessibility & contrast

On white

7.74
#5B39B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5B39B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B39B7
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B39B7#FFFFFF#000000##FFFFFF
##5B39B71.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BB
Deuteranopia (green-blind)
#0050B5
Tritanopia (blue-blind)
#3B5973
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5b39b7;
/* rgb */ color: rgb(91, 57, 183);
/* oklch */ color: oklch(46.1% 0.187 289.3);
Tailwind
colors: {
  custom: {
    50: '#9272ce',
    500: '#5b39b7',
    950: '#000000',
  },
}
SCSS
$custom: #5b39b7;
$custom-light: #9272ce;
$custom-dark: #000000;
JSON
{
  "hex": "#5b39b7",
  "rgb": {
    "r": 91,
    "g": 57,
    "b": 183
  },
  "hsl": {
    "h": 256.19,
    "s": 52.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.46077,
    "c": 0.18716,
    "h": 289.3
  },
  "luminance": 0.08569
}

Semantic roles & 50–950 ramp

primary
#5B39B7
secondary
#B5C785
accent
#DC4CB5
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5B39B7

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

Preview Lab → · Contrast checker → · Palette generator →

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