#5B409F#5B409F

#5B409F is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.2% C 0.148 H 292.6°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#5B409F
RGBrgb(91, 64, 159)
HSLhsl(257, 43%, 44%)
HSVhsv(257, 60%, 62%)
CMYKcmyk(42.8%, 59.7%, 0%, 37.6%)
CIE-LABlab(34.79, 34.70, -47.80)
CIE-LCHlch(34.79, 59.06, 305.97°)
OKLaboklab(45.25% 0.0567 -0.1362)
OKLCHoklch(45.25% 0.148 292.6)
XYZxyz(12.4041, 8.3938, 33.7608)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B409F #849F40
analogous
#40549F #5B409F #8A409F
triadic
#5B409F #9F5B40 #409F5B
tetradic
#5B409F #9F4054 #849F40 #409F8A
square
#5B409F #9F4054 #849F40 #409F8A
split-complementary
#5B409F #9F8A40 #549F40
monochromatic
#291D48 #422E73 #5B409F #795EBE #9E8AD0

Accessibility & contrast

On white

7.84
#5B409F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5B409F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B409F
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B409F#FFFFFF#000000##FFFFFF
##5B409F1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A2
Deuteranopia (green-blind)
#0C509D
Tritanopia (blue-blind)
#485569
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5b409f;
/* rgb */ color: rgb(91, 64, 159);
/* oklch */ color: oklch(45.2% 0.148 292.6);
Tailwind
colors: {
  custom: {
    50: '#8e76bc',
    500: '#5b409f',
    950: '#000000',
  },
}
SCSS
$custom: #5b409f;
$custom-light: #8e76bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b409f",
  "rgb": {
    "r": 91,
    "g": 64,
    "b": 159
  },
  "hsl": {
    "h": 257.053,
    "s": 42.601,
    "l": 43.725
  },
  "oklch": {
    "l": 0.45247,
    "c": 0.14752,
    "h": 292.6
  },
  "luminance": 0.08394
}

Semantic roles & 50–950 ramp

primary
#5B409F
secondary
#AABB80
accent
#D255AF
background
#F9F7FB
surface
#F1EDF6
border
#CBC8D0
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5B409F

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

Preview Lab → · Contrast checker → · Palette generator →

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