#5B5AF7#5B5AF7

#5B5AF7 is a mid, highly saturated blue. Relative luminance 0.163; OKLCH L 56.5% C 0.228 H 276.5°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#5B5AF7
RGBrgb(91, 90, 247)
HSLhsl(240, 91%, 66%)
HSVhsv(240, 64%, 97%)
CMYKcmyk(63.2%, 63.6%, 0%, 3.1%)
CIE-LABlab(47.30, 46.46, -78.43)
CIE-LCHlch(47.30, 91.15, 300.64°)
OKLaboklab(56.49% 0.0259 -0.2261)
OKLCHoklch(56.49% 0.228 276.5)
XYZxyz(24.7536, 16.2498, 89.8097)
Luminance0.1625 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5AF7 #F6F75A
analogous
#5AA7F7 #5B5AF7 #A95AF7
triadic
#5B5AF7 #F75B5A #5AF75B
tetradic
#5B5AF7 #F75AA7 #F6F75A #5AF7A9
square
#5B5AF7 #F75AA7 #F6F75A #5AF7A9
split-complementary
#5B5AF7 #F7A95A #A7F75A
monochromatic
#0B0ACD #2120F4 #5B5AF7 #9594FA #CFCFFD

Accessibility & contrast

On white

4.94
#5B5AF7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#5B5AF7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5AF7
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5AF7#FFFFFF#000000##FFFFFF
##5B5AF71.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077FC
Deuteranopia (green-blind)
#0069F4
Tritanopia (blue-blind)
#0082A0
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5b5af7;
/* rgb */ color: rgb(91, 90, 247);
/* oklch */ color: oklch(56.5% 0.228 276.5);
Tailwind
colors: {
  custom: {
    50: '#9a89fb',
    500: '#5b5af7',
    950: '#000000',
  },
}
SCSS
$custom: #5b5af7;
$custom-light: #9a89fb;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5af7",
  "rgb": {
    "r": 91,
    "g": 90,
    "b": 247
  },
  "hsl": {
    "h": 240.382,
    "s": 90.751,
    "l": 66.078
  },
  "oklch": {
    "l": 0.56485,
    "c": 0.22757,
    "h": 276.5
  },
  "luminance": 0.16252
}

Semantic roles & 50–950 ramp

primary
#5B5AF7
secondary
#F0F0BD
accent
#E600E4
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0B18
muted
#7F7C86

Preview Lab

Preview with #5B5AF7

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

Preview Lab → · Contrast checker → · Palette generator →

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