#5B4BE7#5B4BE7

#5B4BE7 is a mid, highly saturated blue. Relative luminance 0.130; OKLCH L 52.8% C 0.225 H 280.0°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#5B4BE7
RGBrgb(91, 75, 231)
HSLhsl(246, 76%, 60%)
HSVhsv(246, 68%, 91%)
CMYKcmyk(60.6%, 67.5%, 0%, 9.4%)
CIE-LABlab(42.80, 50.02, -76.79)
CIE-LCHlch(42.80, 91.64, 303.08°)
OKLaboklab(52.82% 0.0391 -0.2213)
OKLCHoklch(52.82% 0.225 280)
XYZxyz(21.2497, 13.0243, 76.9800)
Luminance0.1303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4BE7 #D7E74B
analogous
#4B89E7 #5B4BE7 #A94BE7
triadic
#5B4BE7 #E75B4B #4BE75B
tetradic
#5B4BE7 #E74B89 #D7E74B #4BE7A9
square
#5B4BE7 #E74B89 #D7E74B #4BE7A9
split-complementary
#5B4BE7 #E7A94B #89E74B
monochromatic
#2416A2 #301DD8 #5B4BE7 #8C81EE #BDB7F5

Accessibility & contrast

On white

5.82
#5B4BE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#5B4BE7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4BE7
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4BE7#FFFFFF#000000##FFFFFF
##5B4BE71.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BEC
Deuteranopia (green-blind)
#005FE4
Tritanopia (blue-blind)
#007493
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5b4be7;
/* rgb */ color: rgb(91, 75, 231);
/* oklch */ color: oklch(52.8% 0.225 280.0);
Tailwind
colors: {
  custom: {
    50: '#987ff0',
    500: '#5b4be7',
    950: '#000000',
  },
}
SCSS
$custom: #5b4be7;
$custom-light: #987ff0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4be7",
  "rgb": {
    "r": 91,
    "g": 75,
    "b": 231
  },
  "hsl": {
    "h": 246.154,
    "s": 76.471,
    "l": 60
  },
  "oklch": {
    "l": 0.52819,
    "c": 0.22476,
    "h": 280
  },
  "luminance": 0.13026
}

Semantic roles & 50–950 ramp

primary
#5B4BE7
secondary
#DFE5A9
accent
#F335E0
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5B4BE7

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

Preview Lab → · Contrast checker → · Palette generator →

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