#5B5FE9#5B5FE9

#5B5FE9 is a mid, highly saturated blue. Relative luminance 0.163; OKLCH L 56.2% C 0.204 H 276.4°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#5B5FE9
RGBrgb(91, 95, 233)
HSLhsl(238, 76%, 64%)
HSVhsv(238, 61%, 91%)
CMYKcmyk(60.9%, 59.2%, 0%, 8.6%)
CIE-LABlab(47.35, 39.00, -70.49)
CIE-LCHlch(47.35, 80.56, 298.96°)
OKLaboklab(56.19% 0.0226 -0.2028)
OKLCHoklch(56.19% 0.204 276.4)
XYZxyz(23.1098, 16.2899, 79.0014)
Luminance0.1629 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5FE9 #E9E55B
analogous
#5BA6E9 #5B5FE9 #9E5BE9
triadic
#5B5FE9 #E95B5F #5FE95B
tetradic
#5B5FE9 #E95BA6 #E9E55B #5BE99E
square
#5B5FE9 #E95BA6 #E9E55B #5BE99E
split-complementary
#5B5FE9 #E99E5B #A6E95B
monochromatic
#181CB2 #252AE2 #5B5FE9 #9194F0 #C7C8F7

Accessibility & contrast

On white

4.93
#5B5FE9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#5B5FE9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5FE9
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5FE9#FFFFFF#000000##FFFFFF
##5B5FE91.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076EE
Deuteranopia (green-blind)
#006AE6
Tritanopia (blue-blind)
#00819B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5b5fe9;
/* rgb */ color: rgb(91, 95, 233);
/* oklch */ color: oklch(56.2% 0.204 276.4);
Tailwind
colors: {
  custom: {
    50: '#978cf1',
    500: '#5b5fe9',
    950: '#000000',
  },
}
SCSS
$custom: #5b5fe9;
$custom-light: #978cf1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5fe9",
  "rgb": {
    "r": 91,
    "g": 95,
    "b": 233
  },
  "hsl": {
    "h": 238.31,
    "s": 76.344,
    "l": 63.529
  },
  "oklch": {
    "l": 0.56187,
    "c": 0.204,
    "h": 276.4
  },
  "luminance": 0.16292
}

Semantic roles & 50–950 ramp

primary
#5B5FE9
secondary
#E9E8B7
accent
#D30DD9
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5B5FE9

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

Preview Lab → · Contrast checker → · Palette generator →

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