#5E3BB7#5E3BB7

#5E3BB7 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.7% C 0.185 H 290.4°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#5E3BB7
RGBrgb(94, 59, 183)
HSLhsl(257, 51%, 47%)
HSVhsv(257, 68%, 72%)
CMYKcmyk(48.6%, 67.8%, 0%, 28.2%)
CIE-LABlab(35.84, 45.09, -60.40)
CIE-LCHlch(35.84, 75.37, 306.74°)
OKLaboklab(46.65% 0.0643 -0.1731)
OKLCHoklch(46.65% 0.185 290.4)
XYZxyz(14.7249, 8.9259, 45.7376)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E3BB7 #94B73B
analogous
#3B56B7 #5E3BB7 #9C3BB7
triadic
#5E3BB7 #B75E3B #3BB75E
tetradic
#5E3BB7 #B73B56 #94B73B #3BB79C
square
#5E3BB7 #B73B56 #94B73B #3BB79C
split-complementary
#5E3BB7 #B79C3B #56B73B
monochromatic
#2E1D5A #462C89 #5E3BB7 #8163CD #A691DC

Accessibility & contrast

On white

7.54
#5E3BB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5E3BB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E3BB7
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E3BB7#FFFFFF#000000##FFFFFF
##5E3BB71.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BB
Deuteranopia (green-blind)
#0051B5
Tritanopia (blue-blind)
#415A74
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5e3bb7;
/* rgb */ color: rgb(94, 59, 183);
/* oklch */ color: oklch(46.7% 0.185 290.4);
Tailwind
colors: {
  custom: {
    50: '#9373ce',
    500: '#5e3bb7',
    950: '#000000',
  },
}
SCSS
$custom: #5e3bb7;
$custom-light: #9373ce;
$custom-dark: #000000;
JSON
{
  "hex": "#5e3bb7",
  "rgb": {
    "r": 94,
    "g": 59,
    "b": 183
  },
  "hsl": {
    "h": 256.935,
    "s": 51.24,
    "l": 47.451
  },
  "oklch": {
    "l": 0.46651,
    "c": 0.18467,
    "h": 290.4
  },
  "luminance": 0.08927
}

Semantic roles & 50–950 ramp

primary
#5E3BB7
secondary
#B5C687
accent
#DB4DB3
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5E3BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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