#5B4EC0#5B4EC0

#5B4EC0 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 50.1% C 0.172 H 283.5°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#5B4EC0
RGBrgb(91, 78, 192)
HSLhsl(247, 48%, 53%)
HSVhsv(247, 59%, 75%)
CMYKcmyk(52.6%, 59.4%, 0%, 24.7%)
CIE-LABlab(40.37, 36.22, -58.33)
CIE-LCHlch(40.37, 68.66, 301.83°)
OKLaboklab(50.1% 0.04 -0.1671)
OKLCHoklch(50.1% 0.172 283.5)
XYZxyz(16.5503, 11.4778, 51.2023)
Luminance0.1148 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4EC0 #B3C04E
analogous
#4E7AC0 #5B4EC0 #944EC0
triadic
#5B4EC0 #C05B4E #4EC05B
tetradic
#5B4EC0 #C04E7A #B3C04E #4EC094
square
#5B4EC0 #C04E7A #B3C04E #4EC094
split-complementary
#5B4EC0 #C0944E #7AC04E
monochromatic
#2F276D #42379A #5B4EC0 #857BD0 #AFA8E0

Accessibility & contrast

On white

6.37
#5B4EC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#5B4EC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4EC0
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4EC0#FFFFFF#000000##FFFFFF
##5B4EC01.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C4
Deuteranopia (green-blind)
#005BBE
Tritanopia (blue-blind)
#31697F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5b4ec0;
/* rgb */ color: rgb(91, 78, 192);
/* oklch */ color: oklch(50.1% 0.172 283.5);
Tailwind
colors: {
  custom: {
    50: '#9280d4',
    500: '#5b4ec0',
    950: '#000000',
  },
}
SCSS
$custom: #5b4ec0;
$custom-light: #9280d4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4ec0",
  "rgb": {
    "r": 91,
    "g": 78,
    "b": 192
  },
  "hsl": {
    "h": 246.842,
    "s": 47.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.50096,
    "c": 0.17183,
    "h": 283.5
  },
  "luminance": 0.11479
}

Semantic roles & 50–950 ramp

primary
#5B4EC0
secondary
#C8CE9C
accent
#D751C8
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #5B4EC0

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

Preview Lab → · Contrast checker → · Palette generator →

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