#5B409D#5B409D

#5B409D is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.1% C 0.145 H 293.1°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#5B409D
RGBrgb(91, 64, 157)
HSLhsl(257, 42%, 43%)
HSVhsv(257, 59%, 62%)
CMYKcmyk(42%, 59.2%, 0%, 38.4%)
CIE-LABlab(34.65, 34.12, -46.82)
CIE-LCHlch(34.65, 57.93, 306.08°)
OKLaboklab(45.1% 0.0568 -0.1333)
OKLCHoklch(45.1% 0.145 293.1)
XYZxyz(12.2319, 8.3249, 32.8542)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B409D #829D40
analogous
#40549D #5B409D #89409D
triadic
#5B409D #9D5B40 #409D5B
tetradic
#5B409D #9D4054 #829D40 #409D89
square
#5B409D #9D4054 #829D40 #409D89
split-complementary
#5B409D #9D8940 #549D40
monochromatic
#291D46 #422E72 #5B409D #795DBD #9D89CF

Accessibility & contrast

On white

7.88
#5B409D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5B409D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B409D
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B409D#FFFFFF#000000##FFFFFF
##5B409D1.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0353A0
Deuteranopia (green-blind)
#11509B
Tritanopia (blue-blind)
#495468
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5b409d;
/* rgb */ color: rgb(91, 64, 157);
/* oklch */ color: oklch(45.1% 0.145 293.1);
Tailwind
colors: {
  custom: {
    50: '#8e76ba',
    500: '#5b409d',
    950: '#000000',
  },
}
SCSS
$custom: #5b409d;
$custom-light: #8e76ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5b409d",
  "rgb": {
    "r": 91,
    "g": 64,
    "b": 157
  },
  "hsl": {
    "h": 257.419,
    "s": 42.081,
    "l": 43.333
  },
  "oklch": {
    "l": 0.451,
    "c": 0.14487,
    "h": 293.1
  },
  "luminance": 0.08325
}

Semantic roles & 50–950 ramp

primary
#5B409D
secondary
#A9B97F
accent
#D256AE
background
#F9F7FB
surface
#F1EDF6
border
#CBC8D0
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5B409D

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

Preview Lab → · Contrast checker → · Palette generator →

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