#5A41EB#5A41EB

#5A41EB is a mid, highly saturated blue. Relative luminance 0.120; OKLCH L 51.7% C 0.240 H 280.6°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#5A41EB
RGBrgb(90, 65, 235)
HSLhsl(249, 81%, 59%)
HSVhsv(249, 72%, 92%)
CMYKcmyk(61.7%, 72.3%, 0%, 7.8%)
CIE-LABlab(41.14, 56.45, -81.79)
CIE-LCHlch(41.14, 99.38, 304.62°)
OKLaboklab(51.72% 0.0442 -0.2359)
OKLCHoklch(51.72% 0.24 280.6)
XYZxyz(21.0974, 11.9508, 79.7761)
Luminance0.1195 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A41EB #D2EB41
analogous
#417DEB #5A41EB #AF41EB
triadic
#5A41EB #EB5A41 #41EB5A
tetradic
#5A41EB #EB417D #D2EB41 #41EBAF
square
#5A41EB #EB417D #D2EB41 #41EBAF
split-complementary
#5A41EB #EBAF41 #7DEB41
monochromatic
#2611A1 #3317D8 #5A41EB #8A78F1 #BAB0F7

Accessibility & contrast

On white

6.19
#5A41EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5A41EB
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A41EB#FFFFFF#000000##FFFFFF
##5A41EB1.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067F0
Deuteranopia (green-blind)
#005BE8
Tritanopia (blue-blind)
#007192
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5a41eb;
/* rgb */ color: rgb(90, 65, 235);
/* oklch */ color: oklch(51.7% 0.240 280.6);
Tailwind
colors: {
  custom: {
    50: '#9979f3',
    500: '#5a41eb',
    950: '#000000',
  },
}
SCSS
$custom: #5a41eb;
$custom-light: #9979f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a41eb",
  "rgb": {
    "r": 90,
    "g": 65,
    "b": 235
  },
  "hsl": {
    "h": 248.824,
    "s": 80.952,
    "l": 58.824
  },
  "oklch": {
    "l": 0.5172,
    "c": 0.24005,
    "h": 280.6
  },
  "luminance": 0.11952
}

Semantic roles & 50–950 ramp

primary
#5A41EB
secondary
#DCE5A2
accent
#F730DA
background
#FAF7FF
surface
#F4EDFE
border
#CEC8D6
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5A41EB

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

Preview Lab → · Contrast checker → · Palette generator →

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