#5B5CEC#5B5CEC

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

Color values

HEX#5B5CEC
RGBrgb(91, 92, 236)
HSLhsl(240, 79%, 64%)
HSVhsv(240, 61%, 93%)
CMYKcmyk(61.4%, 61%, 0%, 7.5%)
CIE-LABlab(46.89, 41.76, -72.94)
CIE-LCHlch(46.89, 84.05, 299.80°)
OKLaboklab(55.91% 0.025 -0.21)
OKLCHoklch(55.91% 0.211 276.8)
XYZxyz(23.2769, 15.9327, 81.1893)
Luminance0.1593 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5CEC #ECEB5B
analogous
#5BA5EC #5B5CEC #A35BEC
triadic
#5B5CEC #EC5B5C #5CEC5B
tetradic
#5B5CEC #EC5BA5 #ECEB5B #5BECA3
square
#5B5CEC #EC5BA5 #ECEB5B #5BECA3
split-complementary
#5B5CEC #ECA35B #A5EC5B
monochromatic
#1516B7 #2425E6 #5B5CEC #9293F2 #C9C9F9

Accessibility & contrast

On white

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

On black

4.19
#5B5CEC on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5B5CEC#FFFFFF#000000##FFFFFF
##5B5CEC1.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F1
Deuteranopia (green-blind)
#0069E9
Tritanopia (blue-blind)
#00809B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5b5cec;
/* rgb */ color: rgb(91, 92, 236);
/* oklch */ color: oklch(55.9% 0.211 276.8);
Tailwind
colors: {
  custom: {
    50: '#988af3',
    500: '#5b5cec',
    950: '#000000',
  },
}
SCSS
$custom: #5b5cec;
$custom-light: #988af3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5cec",
  "rgb": {
    "r": 91,
    "g": 92,
    "b": 236
  },
  "hsl": {
    "h": 239.586,
    "s": 79.235,
    "l": 64.118
  },
  "oklch": {
    "l": 0.55914,
    "c": 0.21146,
    "h": 276.8
  },
  "luminance": 0.15935
}

Semantic roles & 50–950 ramp

primary
#5B5CEC
secondary
#EBEAB8
accent
#DA0ADC
background
#FAF8FF
surface
#F3F0FE
border
#CDCBD6
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5B5CEC

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

Preview Lab → · Contrast checker → · Palette generator →

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