#5B4FD6#5B4FD6

#5B4FD6 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 52.0% C 0.199 H 280.9°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#5B4FD6
RGBrgb(91, 79, 214)
HSLhsl(245, 62%, 57%)
HSVhsv(245, 63%, 84%)
CMYKcmyk(57.5%, 63.1%, 0%, 16.1%)
CIE-LABlab(42.26, 42.47, -67.98)
CIE-LCHlch(42.26, 80.16, 302.00°)
OKLaboklab(52% 0.0378 -0.1955)
OKLCHoklch(52% 0.199 280.9)
XYZxyz(19.2442, 12.6699, 65.0367)
Luminance0.1267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4FD6 #CAD64F
analogous
#4F87D6 #5B4FD6 #9E4FD6
triadic
#5B4FD6 #D65B4F #4FD65B
tetradic
#5B4FD6 #D64F87 #CAD64F #4FD69E
square
#5B4FD6 #D64F87 #CAD64F #4FD69E
split-complementary
#5B4FD6 #D69E4F #87D64F
monochromatic
#2A208A #392CBC #5B4FD6 #8981E2 #B8B2ED

Accessibility & contrast

On white

5.94
#5B4FD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#5B4FD6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4FD6
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4FD6#FFFFFF#000000##FFFFFF
##5B4FD61.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DA
Deuteranopia (green-blind)
#005FD3
Tritanopia (blue-blind)
#10718B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5b4fd6;
/* rgb */ color: rgb(91, 79, 214);
/* oklch */ color: oklch(52.0% 0.199 280.9);
Tailwind
colors: {
  custom: {
    50: '#9581e4',
    500: '#5b4fd6',
    950: '#000000',
  },
}
SCSS
$custom: #5b4fd6;
$custom-light: #9581e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4fd6",
  "rgb": {
    "r": 91,
    "g": 79,
    "b": 214
  },
  "hsl": {
    "h": 245.333,
    "s": 62.212,
    "l": 57.451
  },
  "oklch": {
    "l": 0.51999,
    "c": 0.19909,
    "h": 280.9
  },
  "luminance": 0.12671
}

Semantic roles & 50–950 ramp

primary
#5B4FD6
secondary
#D7DCA5
accent
#E543D7
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5B4FD6

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

Preview Lab → · Contrast checker → · Palette generator →

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