#5B4AEB#5B4AEB

#5B4AEB is a mid, highly saturated blue. Relative luminance 0.131; OKLCH L 53.0% C 0.231 H 279.8°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#5B4AEB
RGBrgb(91, 74, 235)
HSLhsl(246, 80%, 61%)
HSVhsv(246, 69%, 92%)
CMYKcmyk(61.3%, 68.5%, 0%, 7.8%)
CIE-LABlab(42.94, 51.79, -78.82)
CIE-LCHlch(42.94, 94.32, 303.31°)
OKLaboklab(53.03% 0.0393 -0.2273)
OKLCHoklch(53.03% 0.231 279.8)
XYZxyz(21.7538, 13.1182, 79.9669)
Luminance0.1312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4AEB #DAEB4A
analogous
#4A8AEB #5B4AEB #AB4AEB
triadic
#5B4AEB #EB5B4A #4AEB5B
tetradic
#5B4AEB #EB4A8A #DAEB4A #4AEBAB
square
#5B4AEB #EB4A8A #DAEB4A #4AEBAB
split-complementary
#5B4AEB #EBAB4A #8AEB4A
monochromatic
#2213A8 #2E19DF #5B4AEB #8D81F1 #BFB8F7

Accessibility & contrast

On white

5.79
#5B4AEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#5B4AEB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4AEB
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4AEB#FFFFFF#000000##FFFFFF
##5B4AEB1.005.793.625.79
#FFFFFF5.791.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BF0
Deuteranopia (green-blind)
#005FE8
Tritanopia (blue-blind)
#007595
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5b4aeb;
/* rgb */ color: rgb(91, 74, 235);
/* oklch */ color: oklch(53.0% 0.231 279.8);
Tailwind
colors: {
  custom: {
    50: '#997ef3',
    500: '#5b4aeb',
    950: '#000000',
  },
}
SCSS
$custom: #5b4aeb;
$custom-light: #997ef3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4aeb",
  "rgb": {
    "r": 91,
    "g": 74,
    "b": 235
  },
  "hsl": {
    "h": 246.335,
    "s": 80.1,
    "l": 60.588
  },
  "oklch": {
    "l": 0.53025,
    "c": 0.23065,
    "h": 279.8
  },
  "luminance": 0.1312
}

Semantic roles & 50–950 ramp

primary
#5B4AEB
secondary
#E1E7AA
accent
#DC09C6
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5B4AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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