#5B5CEF#5B5CEF

#5B5CEF is a mid, highly saturated blue. Relative luminance 0.161; OKLCH L 56.2% C 0.215 H 276.6°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#5B5CEF
RGBrgb(91, 92, 239)
HSLhsl(240, 82%, 65%)
HSVhsv(240, 62%, 94%)
CMYKcmyk(61.9%, 61.5%, 0%, 6.3%)
CIE-LABlab(47.12, 42.73, -74.25)
CIE-LCHlch(47.12, 85.66, 299.92°)
OKLaboklab(56.16% 0.0249 -0.2138)
OKLCHoklch(56.16% 0.215 276.6)
XYZxyz(23.7165, 16.1085, 83.5041)
Luminance0.1611 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5CEF #EFEE5B
analogous
#5BA6EF #5B5CEF #A45BEF
triadic
#5B5CEF #EF5B5C #5CEF5B
tetradic
#5B5CEF #EF5BA6 #EFEE5B #5BEFA4
square
#5B5CEF #EF5BA6 #EFEE5B #5BEFA4
split-complementary
#5B5CEF #EFA45B #A6EF5B
monochromatic
#1214BD #2325EA #5B5CEF #9393F4 #CBCBFA

Accessibility & contrast

On white

4.97
#5B5CEF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#5B5CEF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5CEF
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5CEF#FFFFFF#000000##FFFFFF
##5B5CEF1.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F4
Deuteranopia (green-blind)
#0069EC
Tritanopia (blue-blind)
#00819D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5b5cef;
/* rgb */ color: rgb(91, 92, 239);
/* oklch */ color: oklch(56.2% 0.215 276.6);
Tailwind
colors: {
  custom: {
    50: '#988af5',
    500: '#5b5cef',
    950: '#000000',
  },
}
SCSS
$custom: #5b5cef;
$custom-light: #988af5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5cef",
  "rgb": {
    "r": 91,
    "g": 92,
    "b": 239
  },
  "hsl": {
    "h": 239.595,
    "s": 82.222,
    "l": 64.706
  },
  "oklch": {
    "l": 0.56155,
    "c": 0.21525,
    "h": 276.6
  },
  "luminance": 0.1611
}

Semantic roles & 50–950 ramp

primary
#5B5CEF
secondary
#ECECBA
accent
#DD07DF
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5B5CEF

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

Preview Lab → · Contrast checker → · Palette generator →

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