#5B5AE7#5B5AE7

#5B5AE7 is a mid, highly saturated blue. Relative luminance 0.153; OKLCH L 55.2% C 0.207 H 277.5°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#5B5AE7
RGBrgb(91, 90, 231)
HSLhsl(240, 75%, 63%)
HSVhsv(240, 61%, 91%)
CMYKcmyk(60.6%, 61%, 0%, 9.4%)
CIE-LABlab(46.05, 41.35, -71.48)
CIE-LCHlch(46.05, 82.58, 300.05°)
OKLaboklab(55.18% 0.027 -0.2057)
OKLCHoklch(55.18% 0.207 277.5)
XYZxyz(22.3897, 15.3043, 77.3600)
Luminance0.1531 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5AE7 #E6E75A
analogous
#5A9FE7 #5B5AE7 #A25AE7
triadic
#5B5AE7 #E75B5A #5AE75B
tetradic
#5B5AE7 #E75A9F #E6E75A #5AE7A2
square
#5B5AE7 #E75A9F #E6E75A #5AE7A2
split-complementary
#5B5AE7 #E7A25A #9FE75A
monochromatic
#1A19AD #2625DF #5B5AE7 #908FEF #C5C5F7

Accessibility & contrast

On white

5.17
#5B5AE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#5B5AE7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5AE7
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5AE7#FFFFFF#000000##FFFFFF
##5B5AE71.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073EC
Deuteranopia (green-blind)
#0067E4
Tritanopia (blue-blind)
#007D98
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5b5ae7;
/* rgb */ color: rgb(91, 90, 231);
/* oklch */ color: oklch(55.2% 0.207 277.5);
Tailwind
colors: {
  custom: {
    50: '#9789f0',
    500: '#5b5ae7',
    950: '#000000',
  },
}
SCSS
$custom: #5b5ae7;
$custom-light: #9789f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5ae7",
  "rgb": {
    "r": 91,
    "g": 90,
    "b": 231
  },
  "hsl": {
    "h": 240.426,
    "s": 74.603,
    "l": 62.941
  },
  "oklch": {
    "l": 0.5518,
    "c": 0.20747,
    "h": 277.5
  },
  "luminance": 0.15306
}

Semantic roles & 50–950 ramp

primary
#5B5AE7
secondary
#E7E8B5
accent
#D70FD5
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5B5AE7

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

Preview Lab → · Contrast checker → · Palette generator →

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