#5B4095#5B4095

#5B4095 is a dark, vivid violet. Relative luminance 0.081; OKLCH L 44.5% C 0.134 H 295.0°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#5B4095
RGBrgb(91, 64, 149)
HSLhsl(259, 40%, 42%)
HSVhsv(259, 57%, 58%)
CMYKcmyk(38.9%, 57%, 0%, 41.6%)
CIE-LABlab(34.11, 31.82, -42.84)
CIE-LCHlch(34.11, 53.36, 306.61°)
OKLaboklab(44.53% 0.0568 -0.1216)
OKLCHoklch(44.53% 0.134 295)
XYZxyz(11.5712, 8.0606, 29.3742)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4095 #7A9540
analogous
#405095 #5B4095 #864095
triadic
#5B4095 #955B40 #40955B
tetradic
#5B4095 #954050 #7A9540 #409586
square
#5B4095 #954050 #7A9540 #409586
split-complementary
#5B4095 #958640 #509540
monochromatic
#271B3F #412E6A #5B4095 #785AB8 #9B85CB

Accessibility & contrast

On white

8.04
#5B4095 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5B4095 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B4095
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4095#FFFFFF#000000##FFFFFF
##5B40951.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#175198
Deuteranopia (green-blind)
#1F4F93
Tritanopia (blue-blind)
#4D5264
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5b4095;
/* rgb */ color: rgb(91, 64, 149);
/* oklch */ color: oklch(44.5% 0.134 295.0);
Tailwind
colors: {
  custom: {
    50: '#8d76b5',
    500: '#5b4095',
    950: '#000000',
  },
}
SCSS
$custom: #5b4095;
$custom-light: #8d76b5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4095",
  "rgb": {
    "r": 91,
    "g": 64,
    "b": 149
  },
  "hsl": {
    "h": 259.059,
    "s": 39.906,
    "l": 41.765
  },
  "oklch": {
    "l": 0.44528,
    "c": 0.13419,
    "h": 295
  },
  "luminance": 0.08061
}

Semantic roles & 50–950 ramp

primary
#5B4095
secondary
#A3B57C
accent
#D058AA
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0C0811
muted
#7D7B80

Preview Lab

Preview with #5B4095

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

Preview Lab → · Contrast checker → · Palette generator →

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