#5B3DBF#5B3DBF

#5B3DBF is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.3% C 0.192 H 287.2°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#5B3DBF
RGBrgb(91, 61, 191)
HSLhsl(254, 52%, 49%)
HSVhsv(254, 68%, 75%)
CMYKcmyk(52.4%, 68.1%, 0%, 25.1%)
CIE-LABlab(36.60, 45.77, -63.89)
CIE-LCHlch(36.60, 78.60, 305.62°)
OKLaboklab(47.33% 0.0569 -0.1835)
OKLCHoklch(47.33% 0.192 287.2)
XYZxyz(15.3843, 9.3225, 50.2689)
Luminance0.0932 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3DBF #A1BF3D
analogous
#3D60BF #5B3DBF #9C3DBF
triadic
#5B3DBF #BF5B3D #3DBF5B
tetradic
#5B3DBF #BF3D60 #A1BF3D #3DBF9C
square
#5B3DBF #BF3D60 #A1BF3D #3DBF9C
split-complementary
#5B3DBF #BF9C3D #60BF3D
monochromatic
#2F1F62 #452E91 #5B3DBF #816ACF #A898DE

Accessibility & contrast

On white

7.33
#5B3DBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5B3DBF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3DBF
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3DBF#FFFFFF#000000##FFFFFF
##5B3DBF1.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C3
Deuteranopia (green-blind)
#0052BC
Tritanopia (blue-blind)
#345E79
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5b3dbf;
/* rgb */ color: rgb(91, 61, 191);
/* oklch */ color: oklch(47.3% 0.192 287.2);
Tailwind
colors: {
  custom: {
    50: '#9375d3',
    500: '#5b3dbf',
    950: '#000000',
  },
}
SCSS
$custom: #5b3dbf;
$custom-light: #9375d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3dbf",
  "rgb": {
    "r": 91,
    "g": 61,
    "b": 191
  },
  "hsl": {
    "h": 253.846,
    "s": 51.587,
    "l": 49.412
  },
  "oklch": {
    "l": 0.47327,
    "c": 0.1921,
    "h": 287.2
  },
  "luminance": 0.09323
}

Semantic roles & 50–950 ramp

primary
#5B3DBF
secondary
#BCCA8E
accent
#DB4DBA
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5B3DBF

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

Preview Lab → · Contrast checker → · Palette generator →

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