#5B507A#5B507A

#5B507A is a mid, moderate violet. Relative luminance 0.094; OKLCH L 46.0% C 0.068 H 295.6°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#5B507A
RGBrgb(91, 80, 122)
HSLhsl(256, 21%, 40%)
HSVhsv(256, 34%, 48%)
CMYKcmyk(25.4%, 34.4%, 0%, 52.2%)
CIE-LABlab(36.68, 14.32, -22.20)
CIE-LCHlch(36.68, 26.42, 302.82°)
OKLaboklab(45.97% 0.0295 -0.0615)
OKLCHoklch(45.97% 0.068 295.6)
XYZxyz(10.6951, 9.3665, 19.6530)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B507A #6F7A50
analogous
#505A7A #5B507A #70507A
triadic
#5B507A #7A5B50 #507A5B
tetradic
#5B507A #7A505A #6F7A50 #507A70
square
#5B507A #7A505A #6F7A50 #507A70
split-complementary
#5B507A #7A7050 #5A7A50
monochromatic
#242030 #3F3855 #5B507A #776A9D #998FB5

Accessibility & contrast

On white

7.31
#5B507A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#5B507A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B507A
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B507A#FFFFFF#000000##FFFFFF
##5B507A1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#46577C
Deuteranopia (green-blind)
#475679
Tritanopia (blue-blind)
#55575F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5b507a;
/* rgb */ color: rgb(91, 80, 122);
/* oklch */ color: oklch(46.0% 0.068 295.6);
Tailwind
colors: {
  custom: {
    50: '#8a81a0',
    500: '#5b507a',
    950: '#000000',
  },
}
SCSS
$custom: #5b507a;
$custom-light: #8a81a0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b507a",
  "rgb": {
    "r": 91,
    "g": 80,
    "b": 122
  },
  "hsl": {
    "h": 255.714,
    "s": 20.792,
    "l": 39.608
  },
  "oklch": {
    "l": 0.45972,
    "c": 0.06822,
    "h": 295.6
  },
  "luminance": 0.09367
}

Semantic roles & 50–950 ramp

primary
#5B507A
secondary
#9AA383
accent
#BD6AA8
background
#F8F7F9
surface
#F0EEF2
border
#CBC9CC
text
#0C0A0E
muted
#7D7C7E

Preview Lab

Preview with #5B507A

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

Preview Lab → · Contrast checker → · Palette generator →

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