#5B3DBD#5B3DBD

#5B3DBD is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.2% C 0.190 H 287.6°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#5B3DBD
RGBrgb(91, 61, 189)
HSLhsl(254, 51%, 49%)
HSVhsv(254, 68%, 74%)
CMYKcmyk(51.9%, 67.7%, 0%, 25.9%)
CIE-LABlab(36.43, 45.19, -62.99)
CIE-LCHlch(36.43, 77.52, 305.66°)
OKLaboklab(47.16% 0.0572 -0.1808)
OKLCHoklch(47.16% 0.19 287.6)
XYZxyz(15.1657, 9.2350, 49.1177)
Luminance0.0924 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3DBD #9FBD3D
analogous
#3D5FBD #5B3DBD #9B3DBD
triadic
#5B3DBD #BD5B3D #3DBD5B
tetradic
#5B3DBD #BD3D5F #9FBD3D #3DBD9B
square
#5B3DBD #BD3D5F #9FBD3D #3DBD9B
split-complementary
#5B3DBD #BD9B3D #5FBD3D
monochromatic
#2E1F60 #452E8F #5B3DBD #8169CE #A797DD

Accessibility & contrast

On white

7.38
#5B3DBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#5B3DBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3DBD
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3DBD#FFFFFF#000000##FFFFFF
##5B3DBD1.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C1
Deuteranopia (green-blind)
#0052BA
Tritanopia (blue-blind)
#365D78
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5b3dbd;
/* rgb */ color: rgb(91, 61, 189);
/* oklch */ color: oklch(47.2% 0.190 287.6);
Tailwind
colors: {
  custom: {
    50: '#9275d2',
    500: '#5b3dbd',
    950: '#000000',
  },
}
SCSS
$custom: #5b3dbd;
$custom-light: #9275d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3dbd",
  "rgb": {
    "r": 91,
    "g": 61,
    "b": 189
  },
  "hsl": {
    "h": 254.063,
    "s": 51.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.47157,
    "c": 0.18965,
    "h": 287.6
  },
  "luminance": 0.09236
}

Semantic roles & 50–950 ramp

primary
#5B3DBD
secondary
#BBC98D
accent
#DB4DB9
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5B3DBD

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

Preview Lab → · Contrast checker → · Palette generator →

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