#5B508E#5B508E

#5B508E is a mid, moderate violet. Relative luminance 0.099; OKLCH L 47.1% C 0.098 H 290.2°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#5B508E
RGBrgb(91, 80, 142)
HSLhsl(251, 28%, 44%)
HSVhsv(251, 44%, 56%)
CMYKcmyk(35.9%, 43.7%, 0%, 44.3%)
CIE-LABlab(37.69, 19.87, -32.87)
CIE-LCHlch(37.69, 38.41, 301.14°)
OKLaboklab(47.07% 0.0341 -0.0924)
OKLCHoklch(47.07% 0.098 290.2)
XYZxyz(12.0642, 9.9142, 26.8639)
Luminance0.0991 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B508E #838E50
analogous
#50648E #5B508E #7A508E
triadic
#5B508E #8E5B50 #508E5B
tetradic
#5B508E #8E5064 #838E50 #508E7A
square
#5B508E #8E5064 #838E50 #508E7A
split-complementary
#5B508E #8E7A50 #648E50
monochromatic
#292440 #423A67 #5B508E #796EAD #9D95C3

Accessibility & contrast

On white

7.04
#5B508E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#5B508E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B508E
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B508E#FFFFFF#000000##FFFFFF
##5B508E1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5A90
Deuteranopia (green-blind)
#3C578C
Tritanopia (blue-blind)
#4E5C68
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5b508e;
/* rgb */ color: rgb(91, 80, 142);
/* oklch */ color: oklch(47.1% 0.098 290.2);
Tailwind
colors: {
  custom: {
    50: '#8c81af',
    500: '#5b508e',
    950: '#000000',
  },
}
SCSS
$custom: #5b508e;
$custom-light: #8c81af;
$custom-dark: #000000;
JSON
{
  "hex": "#5b508e",
  "rgb": {
    "r": 91,
    "g": 80,
    "b": 142
  },
  "hsl": {
    "h": 250.645,
    "s": 27.928,
    "l": 43.529
  },
  "oklch": {
    "l": 0.4707,
    "c": 0.09848,
    "h": 290.2
  },
  "luminance": 0.09914
}

Semantic roles & 50–950 ramp

primary
#5B508E
secondary
#A9B08A
accent
#C464B3
background
#F8F7FA
surface
#F0EEF4
border
#CBC9CE
text
#0C0A10
muted
#7D7C7F

Preview Lab

Preview with #5B508E

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

Preview Lab → · Contrast checker → · Palette generator →

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