#5B3EBA#5B3EBA

#5B3EBA is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.1% C 0.185 H 287.9°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#5B3EBA
RGBrgb(91, 62, 186)
HSLhsl(254, 50%, 49%)
HSVhsv(254, 67%, 73%)
CMYKcmyk(51.1%, 66.7%, 0%, 27.1%)
CIE-LABlab(36.39, 43.75, -61.29)
CIE-LCHlch(36.39, 75.30, 305.52°)
OKLaboklab(47.05% 0.0567 -0.1758)
OKLCHoklch(47.05% 0.185 287.9)
XYZxyz(14.8973, 9.2139, 47.4383)
Luminance0.0921 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3EBA #9DBA3E
analogous
#3E5FBA #5B3EBA #993EBA
triadic
#5B3EBA #BA5B3E #3EBA5B
tetradic
#5B3EBA #BA3E5F #9DBA3E #3EBA99
square
#5B3EBA #BA3E5F #9DBA3E #3EBA99
split-complementary
#5B3EBA #BA993E #5FBA3E
monochromatic
#2E1F5E #452F8C #5B3EBA #8068CD #A796DC

Accessibility & contrast

On white

7.39
#5B3EBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#5B3EBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3EBA
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3EBA#FFFFFF#000000##FFFFFF
##5B3EBA1.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BE
Deuteranopia (green-blind)
#0052B8
Tritanopia (blue-blind)
#385D77
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5b3eba;
/* rgb */ color: rgb(91, 62, 186);
/* oklch */ color: oklch(47.1% 0.185 287.9);
Tailwind
colors: {
  custom: {
    50: '#9275d0',
    500: '#5b3eba',
    950: '#000000',
  },
}
SCSS
$custom: #5b3eba;
$custom-light: #9275d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3eba",
  "rgb": {
    "r": 91,
    "g": 62,
    "b": 186
  },
  "hsl": {
    "h": 254.032,
    "s": 50,
    "l": 48.627
  },
  "oklch": {
    "l": 0.47052,
    "c": 0.18474,
    "h": 287.9
  },
  "luminance": 0.09215
}

Semantic roles & 50–950 ramp

primary
#5B3EBA
secondary
#BAC88C
accent
#DA4EB9
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5B3EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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