#5B41E9#5B41E9

#5B41E9 is a mid, highly saturated blue. Relative luminance 0.119; OKLCH L 51.6% C 0.238 H 281.1°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#5B41E9
RGBrgb(91, 65, 233)
HSLhsl(249, 79%, 58%)
HSVhsv(249, 72%, 91%)
CMYKcmyk(60.9%, 72.1%, 0%, 8.6%)
CIE-LABlab(41.03, 55.99, -80.82)
CIE-LCHlch(41.03, 98.32, 304.71°)
OKLaboklab(51.61% 0.0459 -0.2331)
OKLCHoklch(51.61% 0.238 281.1)
XYZxyz(20.9080, 11.8864, 78.2675)
Luminance0.1189 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B41E9 #CFE941
analogous
#417BE9 #5B41E9 #AF41E9
triadic
#5B41E9 #E95B41 #41E95B
tetradic
#5B41E9 #E9417B #CFE941 #41E9AF
square
#5B41E9 #E9417B #CFE941 #41E9AF
split-complementary
#5B41E9 #E9AF41 #7BE941
monochromatic
#28129D #3619D4 #5B41E9 #8A78EF #BAAFF6

Accessibility & contrast

On white

6.22
#5B41E9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#5B41E9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B41E9
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B41E9#FFFFFF#000000##FFFFFF
##5B41E91.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067EE
Deuteranopia (green-blind)
#005BE6
Tritanopia (blue-blind)
#007091
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5b41e9;
/* rgb */ color: rgb(91, 65, 233);
/* oklch */ color: oklch(51.6% 0.238 281.1);
Tailwind
colors: {
  custom: {
    50: '#9979f1',
    500: '#5b41e9',
    950: '#000000',
  },
}
SCSS
$custom: #5b41e9;
$custom-light: #9979f1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b41e9",
  "rgb": {
    "r": 91,
    "g": 65,
    "b": 233
  },
  "hsl": {
    "h": 249.286,
    "s": 79.245,
    "l": 58.431
  },
  "oklch": {
    "l": 0.51612,
    "c": 0.23757,
    "h": 281.1
  },
  "luminance": 0.11888
}

Semantic roles & 50–950 ramp

primary
#5B41E9
secondary
#DAE4A2
accent
#F632D7
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5B41E9

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

Preview Lab → · Contrast checker → · Palette generator →

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