#5B58F7#5B58F7

#5B58F7 is a mid, highly saturated blue. Relative luminance 0.159; OKLCH L 56.2% C 0.230 H 276.9°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#5B58F7
RGBrgb(91, 88, 247)
HSLhsl(241, 91%, 66%)
HSVhsv(241, 64%, 97%)
CMYKcmyk(63.2%, 64.4%, 0%, 3.1%)
CIE-LABlab(46.87, 47.61, -79.14)
CIE-LCHlch(46.87, 92.36, 301.03°)
OKLaboklab(56.17% 0.0274 -0.2282)
OKLCHoklch(56.17% 0.23 276.9)
XYZxyz(24.5872, 15.9170, 89.7542)
Luminance0.1592 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B58F7 #F4F758
analogous
#58A4F7 #5B58F7 #AA58F7
triadic
#5B58F7 #F75B58 #58F75B
tetradic
#5B58F7 #F758A4 #F4F758 #58F7AA
square
#5B58F7 #F758A4 #F4F758 #58F7AA
split-complementary
#5B58F7 #F7AA58 #A4F758
monochromatic
#0D0ACB #221EF4 #5B58F7 #9492FA #CECDFD

Accessibility & contrast

On white

5.02
#5B58F7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#5B58F7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B58F7
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B58F7#FFFFFF#000000##FFFFFF
##5B58F71.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076FC
Deuteranopia (green-blind)
#0068F4
Tritanopia (blue-blind)
#0081A0
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5b58f7;
/* rgb */ color: rgb(91, 88, 247);
/* oklch */ color: oklch(56.2% 0.230 276.9);
Tailwind
colors: {
  custom: {
    50: '#9a88fb',
    500: '#5b58f7',
    950: '#000000',
  },
}
SCSS
$custom: #5b58f7;
$custom-light: #9a88fb;
$custom-dark: #000000;
JSON
{
  "hex": "#5b58f7",
  "rgb": {
    "r": 91,
    "g": 88,
    "b": 247
  },
  "hsl": {
    "h": 241.132,
    "s": 90.857,
    "l": 65.686
  },
  "oklch": {
    "l": 0.56169,
    "c": 0.22983,
    "h": 276.9
  },
  "luminance": 0.15919
}

Semantic roles & 50–950 ramp

primary
#5B58F7
secondary
#EFF0BB
accent
#E600E1
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0B18
muted
#7F7C86

Preview Lab

Preview with #5B58F7

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

Preview Lab → · Contrast checker → · Palette generator →

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