#5B3DBB#5B3DBB

#5B3DBB is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.0% C 0.187 H 287.9°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#5B3DBB
RGBrgb(91, 61, 187)
HSLhsl(254, 51%, 49%)
HSVhsv(254, 67%, 73%)
CMYKcmyk(51.3%, 67.4%, 0%, 26.7%)
CIE-LABlab(36.27, 44.60, -62.08)
CIE-LCHlch(36.27, 76.44, 305.70°)
OKLaboklab(46.99% 0.0575 -0.1781)
OKLCHoklch(46.99% 0.187 287.9)
XYZxyz(14.9501, 9.1488, 47.9822)
Luminance0.0915 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3DBB #9DBB3D
analogous
#3D5EBB #5B3DBB #9A3DBB
triadic
#5B3DBB #BB5B3D #3DBB5B
tetradic
#5B3DBB #BB3D5E #9DBB3D #3DBB9A
square
#5B3DBB #BB3D5E #9DBB3D #3DBB9A
split-complementary
#5B3DBB #BB9A3D #5EBB3D
monochromatic
#2E1F5F #452E8D #5B3DBB #8068CE #A796DD

Accessibility & contrast

On white

7.42
#5B3DBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5B3DBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3DBB
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3DBB#FFFFFF#000000##FFFFFF
##5B3DBB1.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BF
Deuteranopia (green-blind)
#0052B9
Tritanopia (blue-blind)
#385D77
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5b3dbb;
/* rgb */ color: rgb(91, 61, 187);
/* oklch */ color: oklch(47.0% 0.187 287.9);
Tailwind
colors: {
  custom: {
    50: '#9275d0',
    500: '#5b3dbb',
    950: '#000000',
  },
}
SCSS
$custom: #5b3dbb;
$custom-light: #9275d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3dbb",
  "rgb": {
    "r": 91,
    "g": 61,
    "b": 187
  },
  "hsl": {
    "h": 254.286,
    "s": 50.806,
    "l": 48.627
  },
  "oklch": {
    "l": 0.46989,
    "c": 0.1872,
    "h": 287.9
  },
  "luminance": 0.09149
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B3DBB

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

Preview Lab → · Contrast checker → · Palette generator →

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