#5B5AE6#5B5AE6

#5B5AE6 is a mid, highly saturated blue. Relative luminance 0.152; OKLCH L 55.1% C 0.206 H 277.5°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#5B5AE6
RGBrgb(91, 90, 230)
HSLhsl(240, 74%, 63%)
HSVhsv(240, 61%, 90%)
CMYKcmyk(60.4%, 60.9%, 0%, 9.8%)
CIE-LABlab(45.97, 41.03, -71.04)
CIE-LCHlch(45.97, 82.04, 300.01°)
OKLaboklab(55.1% 0.027 -0.2044)
OKLCHoklch(55.1% 0.206 277.5)
XYZxyz(22.2489, 15.2479, 76.6183)
Luminance0.1525 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5AE6 #E5E65A
analogous
#5A9FE6 #5B5AE6 #A15AE6
triadic
#5B5AE6 #E65B5A #5AE65B
tetradic
#5B5AE6 #E65A9F #E5E65A #5AE6A1
square
#5B5AE6 #E65A9F #E5E65A #5AE6A1
split-complementary
#5B5AE6 #E6A15A #9FE65A
monochromatic
#1B1AAC #2625DE #5B5AE6 #908FEE #C5C4F6

Accessibility & contrast

On white

5.19
#5B5AE6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#5B5AE6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5AE6
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5AE6#FFFFFF#000000##FFFFFF
##5B5AE61.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073EB
Deuteranopia (green-blind)
#0067E3
Tritanopia (blue-blind)
#007D97
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5b5ae6;
/* rgb */ color: rgb(91, 90, 230);
/* oklch */ color: oklch(55.1% 0.206 277.5);
Tailwind
colors: {
  custom: {
    50: '#9789ef',
    500: '#5b5ae6',
    950: '#000000',
  },
}
SCSS
$custom: #5b5ae6;
$custom-light: #9789ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5ae6",
  "rgb": {
    "r": 91,
    "g": 90,
    "b": 230
  },
  "hsl": {
    "h": 240.429,
    "s": 73.684,
    "l": 62.745
  },
  "oklch": {
    "l": 0.551,
    "c": 0.2062,
    "h": 277.5
  },
  "luminance": 0.1525
}

Semantic roles & 50–950 ramp

primary
#5B5AE6
secondary
#E7E7B5
accent
#D610D4
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5B5AE6

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

Preview Lab → · Contrast checker → · Palette generator →

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