#5B4E82#5B4E82

#5B4E82 is a mid, moderate violet. Relative luminance 0.093; OKLCH L 46.0% C 0.084 H 294.4°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#5B4E82
RGBrgb(91, 78, 130)
HSLhsl(255, 25%, 41%)
HSVhsv(255, 40%, 51%)
CMYKcmyk(30%, 40%, 0%, 49%)
CIE-LABlab(36.53, 17.75, -27.37)
CIE-LCHlch(36.53, 32.62, 302.96°)
OKLaboklab(45.98% 0.0346 -0.0764)
OKLCHoklch(45.98% 0.084 294.4)
XYZxyz(11.0671, 9.2845, 22.3238)
Luminance0.0929 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4E82 #75824E
analogous
#4E5B82 #5B4E82 #754E82
triadic
#5B4E82 #825B4E #4E825B
tetradic
#5B4E82 #824E5B #75824E #4E8275
square
#5B4E82 #824E5B #75824E #4E8275
split-complementary
#5B4E82 #82754E #5B824E
monochromatic
#252035 #40375C #5B4E82 #7868A5 #9A8FBC

Accessibility & contrast

On white

7.35
#5B4E82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5B4E82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B4E82
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4E82#FFFFFF#000000##FFFFFF
##5B4E821.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F5684
Deuteranopia (green-blind)
#415581
Tritanopia (blue-blind)
#535762
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5b4e82;
/* rgb */ color: rgb(91, 78, 130);
/* oklch */ color: oklch(46.0% 0.084 294.4);
Tailwind
colors: {
  custom: {
    50: '#8b7fa6',
    500: '#5b4e82',
    950: '#000000',
  },
}
SCSS
$custom: #5b4e82;
$custom-light: #8b7fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4e82",
  "rgb": {
    "r": 91,
    "g": 78,
    "b": 130
  },
  "hsl": {
    "h": 255,
    "s": 25,
    "l": 40.784
  },
  "oklch": {
    "l": 0.45982,
    "c": 0.08388,
    "h": 294.4
  },
  "luminance": 0.09285
}

Semantic roles & 50–950 ramp

primary
#5B4E82
secondary
#9FA884
accent
#C166AB
background
#F8F7FA
surface
#F0EEF4
border
#CBC9CE
text
#0C0A0F
muted
#7D7C7F

Preview Lab

Preview with #5B4E82

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

Preview Lab → · Contrast checker → · Palette generator →

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