#5B4AE7#5B4AE7

#5B4AE7 is a mid, highly saturated blue. Relative luminance 0.129; OKLCH L 52.7% C 0.226 H 280.2°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#5B4AE7
RGBrgb(91, 74, 231)
HSLhsl(246, 77%, 60%)
HSVhsv(246, 68%, 91%)
CMYKcmyk(60.6%, 68%, 0%, 9.4%)
CIE-LABlab(42.60, 50.57, -77.12)
CIE-LCHlch(42.60, 92.23, 303.25°)
OKLaboklab(52.67% 0.0399 -0.2223)
OKLCHoklch(52.67% 0.226 280.2)
XYZxyz(21.1824, 12.8897, 76.9575)
Luminance0.1289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4AE7 #D6E74A
analogous
#4A87E7 #5B4AE7 #AA4AE7
triadic
#5B4AE7 #E75B4A #4AE75B
tetradic
#5B4AE7 #E74A87 #D6E74A #4AE7AA
square
#5B4AE7 #E74A87 #D6E74A #4AE7AA
split-complementary
#5B4AE7 #E7AA4A #87E74A
monochromatic
#2515A1 #311DD7 #5B4AE7 #8C80EE #BDB6F5

Accessibility & contrast

On white

5.87
#5B4AE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#5B4AE7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4AE7
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4AE7#FFFFFF#000000##FFFFFF
##5B4AE71.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b4ae7;
/* rgb */ color: rgb(91, 74, 231);
/* oklch */ color: oklch(52.7% 0.226 280.2);
Tailwind
colors: {
  custom: {
    50: '#987ef0',
    500: '#5b4ae7',
    950: '#000000',
  },
}
SCSS
$custom: #5b4ae7;
$custom-light: #987ef0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4ae7",
  "rgb": {
    "r": 91,
    "g": 74,
    "b": 231
  },
  "hsl": {
    "h": 246.497,
    "s": 76.585,
    "l": 59.804
  },
  "oklch": {
    "l": 0.52672,
    "c": 0.22585,
    "h": 280.2
  },
  "luminance": 0.12891
}

Semantic roles & 50–950 ramp

primary
#5B4AE7
secondary
#DEE5A8
accent
#F335DF
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5B4AE7

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

Preview Lab → · Contrast checker → · Palette generator →

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