#5B4697#5B4697

#5B4697 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 45.7% C 0.128 H 292.6°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#5B4697
RGBrgb(91, 70, 151)
HSLhsl(256, 37%, 43%)
HSVhsv(256, 54%, 59%)
CMYKcmyk(39.7%, 53.6%, 0%, 40.8%)
CIE-LABlab(35.67, 28.73, -41.54)
CIE-LCHlch(35.67, 50.51, 304.67°)
OKLaboklab(45.73% 0.049 -0.1178)
OKLCHoklch(45.73% 0.128 292.6)
XYZxyz(12.0890, 8.8385, 30.3412)
Luminance0.0884 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4697 #829746
analogous
#465997 #5B4697 #834697
triadic
#5B4697 #975B46 #46975B
tetradic
#5B4697 #974659 #829746 #469783
square
#5B4697 #974659 #829746 #469783
split-complementary
#5B4697 #978346 #599746
monochromatic
#291F43 #42336D #5B4697 #7963B7 #9D8DCA

Accessibility & contrast

On white

7.59
#5B4697 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5B4697 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B4697
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4697#FFFFFF#000000##FFFFFF
##5B46971.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23559A
Deuteranopia (green-blind)
#275295
Tritanopia (blue-blind)
#4C5767
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5b4697;
/* rgb */ color: rgb(91, 70, 151);
/* oklch */ color: oklch(45.7% 0.128 292.6);
Tailwind
colors: {
  custom: {
    50: '#8d7ab6',
    500: '#5b4697',
    950: '#000000',
  },
}
SCSS
$custom: #5b4697;
$custom-light: #8d7ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4697",
  "rgb": {
    "r": 91,
    "g": 70,
    "b": 151
  },
  "hsl": {
    "h": 255.556,
    "s": 36.652,
    "l": 43.333
  },
  "oklch": {
    "l": 0.45727,
    "c": 0.12757,
    "h": 292.6
  },
  "luminance": 0.08839
}

Semantic roles & 50–950 ramp

primary
#5B4697
secondary
#A9B683
accent
#CD5BAF
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0C0911
muted
#7D7B80

Preview Lab

Preview with #5B4697

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

Preview Lab → · Contrast checker → · Palette generator →

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