#5B4FA3#5B4FA3

#5B4FA3 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.2% C 0.131 H 287.0°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#5B4FA3
RGBrgb(91, 79, 163)
HSLhsl(249, 35%, 47%)
HSVhsv(249, 52%, 64%)
CMYKcmyk(44.2%, 51.5%, 0%, 36.1%)
CIE-LABlab(38.66, 26.70, -43.98)
CIE-LCHlch(38.66, 51.45, 301.26°)
OKLaboklab(48.2% 0.0382 -0.1249)
OKLCHoklch(48.2% 0.131 287)
XYZxyz(13.7193, 10.4599, 35.9393)
Luminance0.1046 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4FA3 #97A34F
analogous
#4F6DA3 #5B4FA3 #854FA3
triadic
#5B4FA3 #A35B4F #4FA35B
tetradic
#5B4FA3 #A34F6D #97A34F #4FA385
square
#5B4FA3 #A34F6D #97A34F #4FA385
split-complementary
#5B4FA3 #A3854F #6DA34F
monochromatic
#2D2751 #443B7A #5B4FA3 #7E74BB #A49DCF

Accessibility & contrast

On white

6.79
#5B4FA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#5B4FA3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4FA3
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4FA3#FFFFFF#000000##FFFFFF
##5B4FA31.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5DA6
Deuteranopia (green-blind)
#2959A1
Tritanopia (blue-blind)
#456171
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5b4fa3;
/* rgb */ color: rgb(91, 79, 163);
/* oklch */ color: oklch(48.2% 0.131 287.0);
Tailwind
colors: {
  custom: {
    50: '#8e80bf',
    500: '#5b4fa3',
    950: '#000000',
  },
}
SCSS
$custom: #5b4fa3;
$custom-light: #8e80bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4fa3",
  "rgb": {
    "r": 91,
    "g": 79,
    "b": 163
  },
  "hsl": {
    "h": 248.571,
    "s": 34.711,
    "l": 47.451
  },
  "oklch": {
    "l": 0.48196,
    "c": 0.13062,
    "h": 287
  },
  "luminance": 0.1046
}

Semantic roles & 50–950 ramp

primary
#5B4FA3
secondary
#B6BC91
accent
#CB5DBB
background
#F8F7FB
surface
#F0EEF7
border
#CBC9D0
text
#0D0A12
muted
#7D7C81

Preview Lab

Preview with #5B4FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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