#5B4792#5B4792

#5B4792 is a mid, moderate violet. Relative luminance 0.088; OKLCH L 45.6% C 0.119 H 293.4°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#5B4792
RGBrgb(91, 71, 146)
HSLhsl(256, 35%, 43%)
HSVhsv(256, 51%, 57%)
CMYKcmyk(37.7%, 51.4%, 0%, 42.7%)
CIE-LABlab(35.61, 26.67, -38.61)
CIE-LCHlch(35.61, 46.92, 304.63°)
OKLaboklab(45.58% 0.0473 -0.1092)
OKLCHoklch(45.58% 0.119 293.4)
XYZxyz(11.7546, 8.8057, 28.2689)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4792 #7E9247
analogous
#475992 #5B4792 #804792
triadic
#5B4792 #925B47 #47925B
tetradic
#5B4792 #924759 #7E9247 #479280
square
#5B4792 #924759 #7E9247 #479280
split-complementary
#5B4792 #928047 #599247
monochromatic
#281F40 #413369 #5B4792 #7863B3 #9C8CC7

Accessibility & contrast

On white

7.61
#5B4792 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5B4792 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B4792
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4792#FFFFFF#000000##FFFFFF
##5B47921.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5595
Deuteranopia (green-blind)
#2E5290
Tritanopia (blue-blind)
#4D5665
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5b4792;
/* rgb */ color: rgb(91, 71, 146);
/* oklch */ color: oklch(45.6% 0.119 293.4);
Tailwind
colors: {
  custom: {
    50: '#8c7ab2',
    500: '#5b4792',
    950: '#000000',
  },
}
SCSS
$custom: #5b4792;
$custom-light: #8c7ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4792",
  "rgb": {
    "r": 91,
    "g": 71,
    "b": 146
  },
  "hsl": {
    "h": 256,
    "s": 34.562,
    "l": 42.549
  },
  "oklch": {
    "l": 0.45579,
    "c": 0.11897,
    "h": 293.4
  },
  "luminance": 0.08806
}

Semantic roles & 50–950 ramp

primary
#5B4792
secondary
#A6B382
accent
#CB5DAD
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0C0911
muted
#7D7B80

Preview Lab

Preview with #5B4792

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

Preview Lab → · Contrast checker → · Palette generator →

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