#5B4F86#5B4F86

#5B4F86 is a mid, moderate violet. Relative luminance 0.095; OKLCH L 46.4% C 0.088 H 292.7°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#5B4F86
RGBrgb(91, 79, 134)
HSLhsl(253, 26%, 42%)
HSVhsv(253, 41%, 53%)
CMYKcmyk(32.1%, 41%, 0%, 47.5%)
CIE-LABlab(37.00, 18.23, -29.08)
CIE-LCHlch(37.00, 34.32, 302.08°)
OKLaboklab(46.41% 0.034 -0.0814)
OKLCHoklch(46.41% 0.088 292.7)
XYZxyz(11.4124, 9.5371, 23.7892)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4F86 #7A864F
analogous
#4F5F86 #5B4F86 #774F86
triadic
#5B4F86 #865B4F #4F865B
tetradic
#5B4F86 #864F5F #7A864F #4F8677
square
#5B4F86 #864F5F #7A864F #4F8677
split-complementary
#5B4F86 #86774F #5F864F
monochromatic
#272239 #41385F #5B4F86 #786BA8 #9B91BE

Accessibility & contrast

On white

7.22
#5B4F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5B4F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B4F86
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4F86#FFFFFF#000000##FFFFFF
##5B4F861.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F5888
Deuteranopia (green-blind)
#405685
Tritanopia (blue-blind)
#515964
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5b4f86;
/* rgb */ color: rgb(91, 79, 134);
/* oklch */ color: oklch(46.4% 0.088 292.7);
Tailwind
colors: {
  custom: {
    50: '#8b80a9',
    500: '#5b4f86',
    950: '#000000',
  },
}
SCSS
$custom: #5b4f86;
$custom-light: #8b80a9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4f86",
  "rgb": {
    "r": 91,
    "g": 79,
    "b": 134
  },
  "hsl": {
    "h": 253.091,
    "s": 25.822,
    "l": 41.765
  },
  "oklch": {
    "l": 0.46408,
    "c": 0.08817,
    "h": 292.7
  },
  "luminance": 0.09537
}

Semantic roles & 50–950 ramp

primary
#5B4F86
secondary
#A3AB86
accent
#C266AE
background
#F8F7FA
surface
#F0EEF4
border
#CBC9CE
text
#0C0A10
muted
#7D7C7F

Preview Lab

Preview with #5B4F86

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

Preview Lab → · Contrast checker → · Palette generator →

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