#5B4AEF#5B4AEF

#5B4AEF is a mid, highly saturated blue. Relative luminance 0.134; OKLCH L 53.4% C 0.235 H 279.4°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#5B4AEF
RGBrgb(91, 74, 239)
HSLhsl(246, 84%, 61%)
HSVhsv(246, 69%, 94%)
CMYKcmyk(61.9%, 69%, 0%, 6.3%)
CIE-LABlab(43.29, 53.00, -80.51)
CIE-LCHlch(43.29, 96.39, 303.36°)
OKLaboklab(53.38% 0.0386 -0.2322)
OKLCHoklch(53.38% 0.235 279.4)
XYZxyz(22.3382, 13.3520, 83.0447)
Luminance0.1335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4AEF #DEEF4A
analogous
#4A8CEF #5B4AEF #AE4AEF
triadic
#5B4AEF #EF5B4A #4AEF5B
tetradic
#5B4AEF #EF4A8C #DEEF4A #4AEFAE
square
#5B4AEF #EF4A8C #DEEF4A #4AEFAE
split-complementary
#5B4AEF #EFAE4A #8CEF4A
monochromatic
#200FAF #2A14E7 #5B4AEF #8E82F4 #C1BAF9

Accessibility & contrast

On white

5.72
#5B4AEF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#5B4AEF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4AEF
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4AEF#FFFFFF#000000##FFFFFF
##5B4AEF1.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DF4
Deuteranopia (green-blind)
#0060EC
Tritanopia (blue-blind)
#007797
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5b4aef;
/* rgb */ color: rgb(91, 74, 239);
/* oklch */ color: oklch(53.4% 0.235 279.4);
Tailwind
colors: {
  custom: {
    50: '#997ef6',
    500: '#5b4aef',
    950: '#000000',
  },
}
SCSS
$custom: #5b4aef;
$custom-light: #997ef6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4aef",
  "rgb": {
    "r": 91,
    "g": 74,
    "b": 239
  },
  "hsl": {
    "h": 246.182,
    "s": 83.756,
    "l": 61.373
  },
  "oklch": {
    "l": 0.53381,
    "c": 0.2354,
    "h": 279.4
  },
  "luminance": 0.13354
}

Semantic roles & 50–950 ramp

primary
#5B4AEF
secondary
#E3E9AC
accent
#E005CA
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5B4AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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