#5B4AEE#5B4AEE

#5B4AEE is a mid, highly saturated blue. Relative luminance 0.133; OKLCH L 53.3% C 0.234 H 279.5°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#5B4AEE
RGBrgb(91, 74, 238)
HSLhsl(246, 83%, 61%)
HSVhsv(246, 69%, 93%)
CMYKcmyk(61.8%, 68.9%, 0%, 6.7%)
CIE-LABlab(43.20, 52.70, -80.09)
CIE-LCHlch(43.20, 95.87, 303.35°)
OKLaboklab(53.29% 0.0388 -0.231)
OKLCHoklch(53.29% 0.234 279.5)
XYZxyz(22.1909, 13.2930, 82.2688)
Luminance0.1330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4AEE #DDEE4A
analogous
#4A8BEE #5B4AEE #AD4AEE
triadic
#5B4AEE #EE5B4A #4AEE5B
tetradic
#5B4AEE #EE4A8B #DDEE4A #4AEEAD
square
#5B4AEE #EE4A8B #DDEE4A #4AEEAD
split-complementary
#5B4AEE #EEAD4A #8BEE4A
monochromatic
#2110AD #2B16E5 #5B4AEE #8E82F3 #C0BAF9

Accessibility & contrast

On white

5.74
#5B4AEE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#5B4AEE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4AEE
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4AEE#FFFFFF#000000##FFFFFF
##5B4AEE1.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CF3
Deuteranopia (green-blind)
#0060EB
Tritanopia (blue-blind)
#007697
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5b4aee;
/* rgb */ color: rgb(91, 74, 238);
/* oklch */ color: oklch(53.3% 0.234 279.5);
Tailwind
colors: {
  custom: {
    50: '#997ef5',
    500: '#5b4aee',
    950: '#000000',
  },
}
SCSS
$custom: #5b4aee;
$custom-light: #997ef5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4aee",
  "rgb": {
    "r": 91,
    "g": 74,
    "b": 238
  },
  "hsl": {
    "h": 246.22,
    "s": 82.828,
    "l": 61.176
  },
  "oklch": {
    "l": 0.53291,
    "c": 0.23422,
    "h": 279.5
  },
  "luminance": 0.13295
}

Semantic roles & 50–950 ramp

primary
#5B4AEE
secondary
#E2E9AB
accent
#DF06C9
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5B4AEE

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

Preview Lab → · Contrast checker → · Palette generator →

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