#5B58E6#5B58E6

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

Color values

HEX#5B58E6
RGBrgb(91, 88, 230)
HSLhsl(241, 74%, 62%)
HSVhsv(241, 62%, 90%)
CMYKcmyk(60.4%, 61.7%, 0%, 9.8%)
CIE-LABlab(45.52, 42.22, -71.78)
CIE-LCHlch(45.52, 83.28, 300.46°)
OKLaboklab(54.77% 0.0287 -0.2066)
OKLCHoklch(54.77% 0.209 277.9)
XYZxyz(22.0824, 14.9151, 76.5628)
Luminance0.1492 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B58E6 #E3E658
analogous
#589CE6 #5B58E6 #A258E6
triadic
#5B58E6 #E65B58 #58E65B
tetradic
#5B58E6 #E6589C #E3E658 #58E6A2
square
#5B58E6 #E6589C #E3E658 #58E6A2
split-complementary
#5B58E6 #E6A258 #9CE658
monochromatic
#1D19AA #2723DE #5B58E6 #8F8DEE #C4C2F6

Accessibility & contrast

On white

5.27
#5B58E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#5B58E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B58E6
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B58E6#FFFFFF#000000##FFFFFF
##5B58E61.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072EB
Deuteranopia (green-blind)
#0066E3
Tritanopia (blue-blind)
#007B97
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5b58e6;
/* rgb */ color: rgb(91, 88, 230);
/* oklch */ color: oklch(54.8% 0.209 277.9);
Tailwind
colors: {
  custom: {
    50: '#9787ef',
    500: '#5b58e6',
    950: '#000000',
  },
}
SCSS
$custom: #5b58e6;
$custom-light: #9787ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5b58e6",
  "rgb": {
    "r": 91,
    "g": 88,
    "b": 230
  },
  "hsl": {
    "h": 241.268,
    "s": 73.958,
    "l": 62.353
  },
  "oklch": {
    "l": 0.54767,
    "c": 0.20859,
    "h": 277.9
  },
  "luminance": 0.14917
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B58E6

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

Preview Lab → · Contrast checker → · Palette generator →

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