#5B39BD#5B39BD

#5B39BD is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.6% C 0.194 H 288.2°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#5B39BD
RGBrgb(91, 57, 189)
HSLhsl(255, 54%, 48%)
HSVhsv(255, 70%, 74%)
CMYKcmyk(51.9%, 69.8%, 0%, 25.9%)
CIE-LABlab(35.64, 47.36, -64.28)
CIE-LCHlch(35.64, 79.84, 306.39°)
OKLaboklab(46.59% 0.0609 -0.1846)
OKLCHoklch(46.59% 0.194 288.2)
XYZxyz(14.9601, 8.8238, 49.0491)
Luminance0.0882 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B39BD #9BBD39
analogous
#3959BD #5B39BD #9D39BD
triadic
#5B39BD #BD5B39 #39BD5B
tetradic
#5B39BD #BD3959 #9BBD39 #39BD9D
square
#5B39BD #BD3959 #9BBD39 #39BD9D
split-complementary
#5B39BD #BD9D39 #59BD39
monochromatic
#2E1D5F #442B8E #5B39BD #7F63D0 #A692DE

Accessibility & contrast

On white

7.59
#5B39BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5B39BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B39BD
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B39BD#FFFFFF#000000##FFFFFF
##5B39BD1.007.592.767.59
#FFFFFF7.591.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C1
Deuteranopia (green-blind)
#0050BA
Tritanopia (blue-blind)
#365B77
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5b39bd;
/* rgb */ color: rgb(91, 57, 189);
/* oklch */ color: oklch(46.6% 0.194 288.2);
Tailwind
colors: {
  custom: {
    50: '#9372d2',
    500: '#5b39bd',
    950: '#000000',
  },
}
SCSS
$custom: #5b39bd;
$custom-light: #9372d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b39bd",
  "rgb": {
    "r": 91,
    "g": 57,
    "b": 189
  },
  "hsl": {
    "h": 255.455,
    "s": 53.659,
    "l": 48.235
  },
  "oklch": {
    "l": 0.46592,
    "c": 0.19438,
    "h": 288.2
  },
  "luminance": 0.08825
}

Semantic roles & 50–950 ramp

primary
#5B39BD
secondary
#B9C989
accent
#DD4BB7
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5B39BD

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

Preview Lab → · Contrast checker → · Palette generator →

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