#5B58E7#5B58E7

#5B58E7 is a mid, highly saturated blue. Relative luminance 0.150; OKLCH L 54.8% C 0.210 H 277.9°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#5B58E7
RGBrgb(91, 88, 231)
HSLhsl(241, 75%, 63%)
HSVhsv(241, 62%, 91%)
CMYKcmyk(60.6%, 61.9%, 0%, 9.4%)
CIE-LABlab(45.59, 42.53, -72.22)
CIE-LCHlch(45.59, 83.82, 300.50°)
OKLaboklab(54.85% 0.0287 -0.2079)
OKLCHoklch(54.85% 0.21 277.9)
XYZxyz(22.2233, 14.9714, 77.3045)
Luminance0.1497 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B58E7 #E4E758
analogous
#589CE7 #5B58E7 #A358E7
triadic
#5B58E7 #E75B58 #58E75B
tetradic
#5B58E7 #E7589C #E4E758 #58E7A3
square
#5B58E7 #E7589C #E4E758 #58E7A3
split-complementary
#5B58E7 #E7A358 #9CE758
monochromatic
#1C19AC #2622DF #5B58E7 #908EEF #C4C3F6

Accessibility & contrast

On white

5.26
#5B58E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#5B58E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B58E7
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B58E7#FFFFFF#000000##FFFFFF
##5B58E71.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072EC
Deuteranopia (green-blind)
#0066E4
Tritanopia (blue-blind)
#007C97
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5b58e7;
/* rgb */ color: rgb(91, 88, 231);
/* oklch */ color: oklch(54.8% 0.210 277.9);
Tailwind
colors: {
  custom: {
    50: '#9787f0',
    500: '#5b58e7',
    950: '#000000',
  },
}
SCSS
$custom: #5b58e7;
$custom-light: #9787f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b58e7",
  "rgb": {
    "r": 91,
    "g": 88,
    "b": 231
  },
  "hsl": {
    "h": 241.259,
    "s": 74.869,
    "l": 62.549
  },
  "oklch": {
    "l": 0.54848,
    "c": 0.20986,
    "h": 277.9
  },
  "luminance": 0.14973
}

Semantic roles & 50–950 ramp

primary
#5B58E7
secondary
#E6E7B3
accent
#D70ED3
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5B58E7

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

Preview Lab → · Contrast checker → · Palette generator →

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