#5B4181#5B4181

#5B4181 is a dark, moderate violet. Relative luminance 0.076; OKLCH L 43.4% C 0.105 H 300.9°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#5B4181
RGBrgb(91, 65, 129)
HSLhsl(264, 33%, 38%)
HSVhsv(264, 50%, 51%)
CMYKcmyk(29.5%, 49.6%, 0%, 49.4%)
CIE-LABlab(33.11, 25.65, -32.13)
CIE-LCHlch(33.11, 41.11, 308.59°)
OKLaboklab(43.39% 0.0539 -0.0902)
OKLCHoklch(43.39% 0.105 300.9)
XYZxyz(10.1662, 7.5897, 21.6940)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4181 #678141
analogous
#414781 #5B4181 #7B4181
triadic
#5B4181 #815B41 #41815B
tetradic
#5B4181 #814147 #678141 #41817B
square
#5B4181 #814147 #678141 #41817B
split-complementary
#5B4181 #817B41 #478141
monochromatic
#221830 #3E2C58 #5B4181 #7856AA #987EBE

Accessibility & contrast

On white

8.34
#5B4181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#5B4181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B4181
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4181#FFFFFF#000000##FFFFFF
##5B41811.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4E83
Deuteranopia (green-blind)
#344E7F
Tritanopia (blue-blind)
#544D5B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5b4181;
/* rgb */ color: rgb(91, 65, 129);
/* oklch */ color: oklch(43.4% 0.105 300.9);
Tailwind
colors: {
  custom: {
    50: '#8b76a6',
    500: '#5b4181',
    950: '#000000',
  },
}
SCSS
$custom: #5b4181;
$custom-light: #8b76a6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4181",
  "rgb": {
    "r": 91,
    "g": 65,
    "b": 129
  },
  "hsl": {
    "h": 264.375,
    "s": 32.99,
    "l": 38.039
  },
  "oklch": {
    "l": 0.4339,
    "c": 0.10513,
    "h": 300.9
  },
  "luminance": 0.0759
}

Semantic roles & 50–950 ramp

primary
#5B4181
secondary
#94A975
accent
#C95F9E
background
#F8F7FA
surface
#F0EDF4
border
#CBC8CE
text
#0C080F
muted
#7D7B7F

Preview Lab

Preview with #5B4181

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

Preview Lab → · Contrast checker → · Palette generator →

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