#5A41E9#5A41E9

#5A41E9 is a mid, highly saturated blue. Relative luminance 0.118; OKLCH L 51.5% C 0.238 H 280.8°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#5A41E9
RGBrgb(90, 65, 233)
HSLhsl(249, 79%, 58%)
HSVhsv(249, 72%, 91%)
CMYKcmyk(61.4%, 72.1%, 0%, 8.6%)
CIE-LABlab(40.95, 55.87, -80.96)
CIE-LCHlch(40.95, 98.36, 304.61°)
OKLaboklab(51.54% 0.0446 -0.2335)
OKLCHoklch(51.54% 0.238 280.8)
XYZxyz(20.8101, 11.8359, 78.2629)
Luminance0.1184 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A41E9 #D0E941
analogous
#417CE9 #5A41E9 #AE41E9
triadic
#5A41E9 #E95A41 #41E95A
tetradic
#5A41E9 #E9417C #D0E941 #41E9AE
square
#5A41E9 #E9417C #D0E941 #41E9AE
split-complementary
#5A41E9 #E9AE41 #7CE941
monochromatic
#27129D #3419D4 #5A41E9 #8A78EF #B9AFF6

Accessibility & contrast

On white

6.24
#5A41E9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#5A41E9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A41E9
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A41E9#FFFFFF#000000##FFFFFF
##5A41E91.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a41e9;
/* rgb */ color: rgb(90, 65, 233);
/* oklch */ color: oklch(51.5% 0.238 280.8);
Tailwind
colors: {
  custom: {
    50: '#9979f1',
    500: '#5a41e9',
    950: '#000000',
  },
}
SCSS
$custom: #5a41e9;
$custom-light: #9979f1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a41e9",
  "rgb": {
    "r": 90,
    "g": 65,
    "b": 233
  },
  "hsl": {
    "h": 248.929,
    "s": 79.245,
    "l": 58.431
  },
  "oklch": {
    "l": 0.51535,
    "c": 0.23774,
    "h": 280.8
  },
  "luminance": 0.11837
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A41E9

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

Preview Lab → · Contrast checker → · Palette generator →

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