#5B4FD7#5B4FD7

#5B4FD7 is a mid, highly saturated blue. Relative luminance 0.127; OKLCH L 52.1% C 0.200 H 280.8°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#5B4FD7
RGBrgb(91, 79, 215)
HSLhsl(245, 63%, 58%)
HSVhsv(245, 63%, 84%)
CMYKcmyk(57.7%, 63.3%, 0%, 15.7%)
CIE-LABlab(42.34, 42.79, -68.43)
CIE-LCHlch(42.34, 80.70, 302.02°)
OKLaboklab(52.08% 0.0377 -0.1968)
OKLCHoklch(52.08% 0.2 280.8)
XYZxyz(19.3723, 12.7211, 65.7114)
Luminance0.1272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4FD7 #CBD74F
analogous
#4F87D7 #5B4FD7 #9F4FD7
triadic
#5B4FD7 #D75B4F #4FD75B
tetradic
#5B4FD7 #D74F87 #CBD74F #4FD79F
square
#5B4FD7 #D74F87 #CBD74F #4FD79F
split-complementary
#5B4FD7 #D79F4F #87D74F
monochromatic
#29208C #382BBE #5B4FD7 #8981E2 #B8B3EE

Accessibility & contrast

On white

5.92
#5B4FD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#5B4FD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4FD7
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4FD7#FFFFFF#000000##FFFFFF
##5B4FD71.005.923.545.92
#FFFFFF5.921.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DB
Deuteranopia (green-blind)
#005FD4
Tritanopia (blue-blind)
#0D718C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5b4fd7;
/* rgb */ color: rgb(91, 79, 215);
/* oklch */ color: oklch(52.1% 0.200 280.8);
Tailwind
colors: {
  custom: {
    50: '#9581e4',
    500: '#5b4fd7',
    950: '#000000',
  },
}
SCSS
$custom: #5b4fd7;
$custom-light: #9581e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4fd7",
  "rgb": {
    "r": 91,
    "g": 79,
    "b": 215
  },
  "hsl": {
    "h": 245.294,
    "s": 62.963,
    "l": 57.647
  },
  "oklch": {
    "l": 0.52081,
    "c": 0.20036,
    "h": 280.8
  },
  "luminance": 0.12722
}

Semantic roles & 50–950 ramp

primary
#5B4FD7
secondary
#D7DCA6
accent
#E642D8
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5B4FD7

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

Preview Lab → · Contrast checker → · Palette generator →

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