#5B3C8D#5B3C8D

#5B3C8D is a dark, vivid violet. Relative luminance 0.074; OKLCH L 43.3% C 0.130 H 298.5°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#5B3C8D
RGBrgb(91, 60, 141)
HSLhsl(263, 40%, 39%)
HSVhsv(263, 57%, 55%)
CMYKcmyk(35.5%, 57.4%, 0%, 44.7%)
CIE-LABlab(32.65, 31.99, -40.28)
CIE-LCHlch(32.65, 51.43, 308.46°)
OKLaboklab(43.29% 0.0619 -0.1141)
OKLCHoklch(43.29% 0.13 298.5)
XYZxyz(10.7368, 7.3788, 26.0527)
Luminance0.0738 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3C8D #6E8D3C
analogous
#3C458D #5B3C8D #843C8D
triadic
#5B3C8D #8D5B3C #3C8D5B
tetradic
#5B3C8D #8D3C45 #6E8D3C #3C8D84
square
#5B3C8D #8D3C45 #6E8D3C #3C8D84
split-complementary
#5B3C8D #8D843C #458D3C
monochromatic
#241737 #3F2A62 #5B3C8D #7751B5 #997CC7

Accessibility & contrast

On white

8.48
#5B3C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#5B3C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3C8D
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3C8D#FFFFFF#000000##FFFFFF
##5B3C8D1.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184D90
Deuteranopia (green-blind)
#234C8B
Tritanopia (blue-blind)
#504C5E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5b3c8d;
/* rgb */ color: rgb(91, 60, 141);
/* oklch */ color: oklch(43.3% 0.130 298.5);
Tailwind
colors: {
  custom: {
    50: '#8d73af',
    500: '#5b3c8d',
    950: '#000000',
  },
}
SCSS
$custom: #5b3c8d;
$custom-light: #8d73af;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3c8d",
  "rgb": {
    "r": 91,
    "g": 60,
    "b": 141
  },
  "hsl": {
    "h": 262.963,
    "s": 40.299,
    "l": 39.412
  },
  "oklch": {
    "l": 0.43287,
    "c": 0.12978,
    "h": 298.5
  },
  "luminance": 0.07379
}

Semantic roles & 50–950 ramp

primary
#5B3C8D
secondary
#9AB174
accent
#D058A2
background
#F8F7FA
surface
#F0EDF4
border
#CBC8CE
text
#0C0810
muted
#7D7B7F

Preview Lab

Preview with #5B3C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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