#5B4083#5B4083

#5B4083 is a dark, moderate violet. Relative luminance 0.075; OKLCH L 43.3% C 0.110 H 300.5°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#5B4083
RGBrgb(91, 64, 131)
HSLhsl(264, 34%, 38%)
HSVhsv(264, 51%, 51%)
CMYKcmyk(30.5%, 51.1%, 0%, 48.6%)
CIE-LABlab(32.98, 26.81, -33.58)
CIE-LCHlch(32.98, 42.97, 308.60°)
OKLaboklab(43.33% 0.0557 -0.0945)
OKLCHoklch(43.33% 0.11 300.5)
XYZxyz(10.2436, 7.5296, 22.3820)
Luminance0.0753 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4083 #688340
analogous
#404683 #5B4083 #7C4083
triadic
#5B4083 #835B40 #40835B
tetradic
#5B4083 #834046 #688340 #40837C
square
#5B4083 #834046 #688340 #40837C
split-complementary
#5B4083 #837C40 #468340
monochromatic
#221831 #3E2C5A #5B4083 #7854AC #987EC0

Accessibility & contrast

On white

8.38
#5B4083 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#5B4083 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B4083
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4083#FFFFFF#000000##FFFFFF
##5B40831.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4D85
Deuteranopia (green-blind)
#314D81
Tritanopia (blue-blind)
#534C5B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5b4083;
/* rgb */ color: rgb(91, 64, 131);
/* oklch */ color: oklch(43.3% 0.110 300.5);
Tailwind
colors: {
  custom: {
    50: '#8b75a7',
    500: '#5b4083',
    950: '#000000',
  },
}
SCSS
$custom: #5b4083;
$custom-light: #8b75a7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4083",
  "rgb": {
    "r": 91,
    "g": 64,
    "b": 131
  },
  "hsl": {
    "h": 264.179,
    "s": 34.359,
    "l": 38.235
  },
  "oklch": {
    "l": 0.43331,
    "c": 0.10963,
    "h": 300.5
  },
  "luminance": 0.0753
}

Semantic roles & 50–950 ramp

primary
#5B4083
secondary
#95AA75
accent
#CA5D9E
background
#F8F7FA
surface
#F0EDF4
border
#CBC8CE
text
#0C080F
muted
#7D7B7F

Preview Lab

Preview with #5B4083

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

Preview Lab → · Contrast checker → · Palette generator →

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