#5B4E89#5B4E89

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

Color values

HEX#5B4E89
RGBrgb(91, 78, 137)
HSLhsl(253, 27%, 42%)
HSVhsv(253, 43%, 54%)
CMYKcmyk(33.6%, 43.1%, 0%, 46.3%)
CIE-LABlab(36.89, 19.70, -31.09)
CIE-LCHlch(36.89, 36.80, 302.37°)
OKLaboklab(46.38% 0.036 -0.0872)
OKLCHoklch(46.38% 0.094 292.5)
XYZxyz(11.5530, 9.4788, 24.8830)
Luminance0.0948 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4E89 #7C894E
analogous
#4E5F89 #5B4E89 #794E89
triadic
#5B4E89 #895B4E #4E895B
tetradic
#5B4E89 #894E5F #7C894E #4E8979
square
#5B4E89 #894E5F #7C894E #4E8979
split-complementary
#5B4E89 #89794E #5F894E
monochromatic
#27223B #413862 #5B4E89 #786AAA #9B91C0

Accessibility & contrast

On white

7.25
#5B4E89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#5B4E89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B4E89
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4E89#FFFFFF#000000##FFFFFF
##5B4E891.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C588B
Deuteranopia (green-blind)
#3D5688
Tritanopia (blue-blind)
#505965
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5b4e89;
/* rgb */ color: rgb(91, 78, 137);
/* oklch */ color: oklch(46.4% 0.094 292.5);
Tailwind
colors: {
  custom: {
    50: '#8b7fac',
    500: '#5b4e89',
    950: '#000000',
  },
}
SCSS
$custom: #5b4e89;
$custom-light: #8b7fac;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4e89",
  "rgb": {
    "r": 91,
    "g": 78,
    "b": 137
  },
  "hsl": {
    "h": 253.22,
    "s": 27.442,
    "l": 42.157
  },
  "oklch": {
    "l": 0.46377,
    "c": 0.09435,
    "h": 292.5
  },
  "luminance": 0.09479
}

Semantic roles & 50–950 ramp

primary
#5B4E89
secondary
#A4AD86
accent
#C464AF
background
#F8F7FA
surface
#F0EEF4
border
#CBC9CE
text
#0C0A10
muted
#7D7C7F

Preview Lab

Preview with #5B4E89

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

Preview Lab → · Contrast checker → · Palette generator →

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