#5B3DBA#5B3DBA

#5B3DBA is a mid, vivid violet. Relative luminance 0.091; OKLCH L 46.9% C 0.186 H 288.1°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#5B3DBA
RGBrgb(91, 61, 186)
HSLhsl(254, 51%, 48%)
HSVhsv(254, 67%, 73%)
CMYKcmyk(51.1%, 67.2%, 0%, 27.1%)
CIE-LABlab(36.19, 44.31, -61.62)
CIE-LCHlch(36.19, 75.90, 305.72°)
OKLaboklab(46.91% 0.0576 -0.1768)
OKLCHoklch(46.91% 0.186 288.1)
XYZxyz(14.8435, 9.1061, 47.4204)
Luminance0.0911 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3DBA #9CBA3D
analogous
#3D5DBA #5B3DBA #993DBA
triadic
#5B3DBA #BA5B3D #3DBA5B
tetradic
#5B3DBA #BA3D5D #9CBA3D #3DBA99
square
#5B3DBA #BA3D5D #9CBA3D #3DBA99
split-complementary
#5B3DBA #BA993D #5DBA3D
monochromatic
#2E1F5E #442E8C #5B3DBA #8067CD #A695DC

Accessibility & contrast

On white

7.44
#5B3DBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5B3DBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3DBA
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3DBA#FFFFFF#000000##FFFFFF
##5B3DBA1.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b3dba;
/* rgb */ color: rgb(91, 61, 186);
/* oklch */ color: oklch(46.9% 0.186 288.1);
Tailwind
colors: {
  custom: {
    50: '#9275d0',
    500: '#5b3dba',
    950: '#000000',
  },
}
SCSS
$custom: #5b3dba;
$custom-light: #9275d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3dba",
  "rgb": {
    "r": 91,
    "g": 61,
    "b": 186
  },
  "hsl": {
    "h": 254.4,
    "s": 50.607,
    "l": 48.431
  },
  "oklch": {
    "l": 0.46905,
    "c": 0.18597,
    "h": 288.1
  },
  "luminance": 0.09107
}

Semantic roles & 50–950 ramp

primary
#5B3DBA
secondary
#B9C88B
accent
#DA4EB8
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5B3DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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