#5B5FEE#5B5FEE

#5B5FEE is a mid, highly saturated blue. Relative luminance 0.166; OKLCH L 56.6% C 0.210 H 276.1°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#5B5FEE
RGBrgb(91, 95, 238)
HSLhsl(238, 81%, 65%)
HSVhsv(238, 62%, 93%)
CMYKcmyk(61.8%, 60.1%, 0%, 6.7%)
CIE-LABlab(47.73, 40.62, -72.69)
CIE-LCHlch(47.73, 83.27, 299.20°)
OKLaboklab(56.58% 0.0224 -0.2092)
OKLCHoklch(56.58% 0.21 276.1)
XYZxyz(23.8342, 16.5797, 82.8165)
Luminance0.1658 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5FEE #EEEA5B
analogous
#5BA9EE #5B5FEE #A05BEE
triadic
#5B5FEE #EE5B5F #5FEE5B
tetradic
#5B5FEE #EE5BA9 #EEEA5B #5BEEA0
square
#5B5FEE #EE5BA9 #EEEA5B #5BEEA0
split-complementary
#5B5FEE #EEA05B #A9EE5B
monochromatic
#1318BB #2429E8 #5B5FEE #9295F4 #CACBF9

Accessibility & contrast

On white

4.87
#5B5FEE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#5B5FEE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5FEE
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5FEE#FFFFFF#000000##FFFFFF
##5B5FEE1.004.874.324.87
#FFFFFF4.871.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078F3
Deuteranopia (green-blind)
#006BEB
Tritanopia (blue-blind)
#00829D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5b5fee;
/* rgb */ color: rgb(91, 95, 238);
/* oklch */ color: oklch(56.6% 0.210 276.1);
Tailwind
colors: {
  custom: {
    50: '#988cf5',
    500: '#5b5fee',
    950: '#000000',
  },
}
SCSS
$custom: #5b5fee;
$custom-light: #988cf5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5fee",
  "rgb": {
    "r": 91,
    "g": 95,
    "b": 238
  },
  "hsl": {
    "h": 238.367,
    "s": 81.215,
    "l": 64.51
  },
  "oklch": {
    "l": 0.5658,
    "c": 0.21043,
    "h": 276.1
  },
  "luminance": 0.16582
}

Semantic roles & 50–950 ramp

primary
#5B5FEE
secondary
#ECEAB9
accent
#D808DE
background
#FAF8FF
surface
#F3F0FE
border
#CDCBD6
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5B5FEE

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

Preview Lab → · Contrast checker → · Palette generator →

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