#5B41EA#5B41EA

#5B41EA is a mid, highly saturated blue. Relative luminance 0.119; OKLCH L 51.7% C 0.239 H 281.0°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#5B41EA
RGBrgb(91, 65, 234)
HSLhsl(249, 80%, 59%)
HSVhsv(249, 72%, 92%)
CMYKcmyk(61.1%, 72.2%, 0%, 8.2%)
CIE-LABlab(41.13, 56.28, -81.24)
CIE-LCHlch(41.13, 98.83, 304.71°)
OKLaboklab(51.71% 0.0457 -0.2343)
OKLCHoklch(51.71% 0.239 281)
XYZxyz(21.0513, 11.9437, 79.0220)
Luminance0.1195 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B41EA #D0EA41
analogous
#417BEA #5B41EA #AF41EA
triadic
#5B41EA #EA5B41 #41EA5B
tetradic
#5B41EA #EA417B #D0EA41 #41EAAF
square
#5B41EA #EA417B #D0EA41 #41EAAF
split-complementary
#5B41EA #EAAF41 #7BEA41
monochromatic
#27129F #3518D6 #5B41EA #8B78F0 #BAAFF6

Accessibility & contrast

On white

6.20
#5B41EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#5B41EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B41EA
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B41EA#FFFFFF#000000##FFFFFF
##5B41EA1.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067EF
Deuteranopia (green-blind)
#005BE7
Tritanopia (blue-blind)
#007092
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5b41ea;
/* rgb */ color: rgb(91, 65, 234);
/* oklch */ color: oklch(51.7% 0.239 281.0);
Tailwind
colors: {
  custom: {
    50: '#9979f2',
    500: '#5b41ea',
    950: '#000000',
  },
}
SCSS
$custom: #5b41ea;
$custom-light: #9979f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b41ea",
  "rgb": {
    "r": 91,
    "g": 65,
    "b": 234
  },
  "hsl": {
    "h": 249.231,
    "s": 80.095,
    "l": 58.627
  },
  "oklch": {
    "l": 0.51705,
    "c": 0.23873,
    "h": 281
  },
  "luminance": 0.11945
}

Semantic roles & 50–950 ramp

primary
#5B41EA
secondary
#DBE5A2
accent
#F731D8
background
#FAF7FF
surface
#F4EDFE
border
#CEC8D6
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5B41EA

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

Preview Lab → · Contrast checker → · Palette generator →

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