#5841EA#5841EA

#5841EA is a mid, highly saturated blue. Relative luminance 0.118; OKLCH L 51.5% C 0.239 H 280.0°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#5841EA
RGBrgb(88, 65, 234)
HSLhsl(248, 80%, 59%)
HSVhsv(248, 72%, 92%)
CMYKcmyk(62.4%, 72.2%, 0%, 8.2%)
CIE-LABlab(40.89, 55.92, -81.64)
CIE-LCHlch(40.89, 98.96, 304.41°)
OKLaboklab(51.48% 0.0417 -0.2356)
OKLCHoklch(51.48% 0.239 280)
XYZxyz(20.7614, 11.7942, 79.0084)
Luminance0.1180 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5841EA #D3EA41
analogous
#417EEA #5841EA #AD41EA
triadic
#5841EA #EA5841 #41EA58
tetradic
#5841EA #EA417E #D3EA41 #41EAAD
square
#5841EA #EA417E #D3EA41 #41EAAD
split-complementary
#5841EA #EAAD41 #7EEA41
monochromatic
#25129F #3218D6 #5841EA #8878F0 #B9AFF6

Accessibility & contrast

On white

6.25
#5841EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#5841EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5841EA
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5841EA#FFFFFF#000000##FFFFFF
##5841EA1.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5841ea;
/* rgb */ color: rgb(88, 65, 234);
/* oklch */ color: oklch(51.5% 0.239 280.0);
Tailwind
colors: {
  custom: {
    50: '#9879f2',
    500: '#5841ea',
    950: '#000000',
  },
}
SCSS
$custom: #5841ea;
$custom-light: #9879f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5841ea",
  "rgb": {
    "r": 88,
    "g": 65,
    "b": 234
  },
  "hsl": {
    "h": 248.166,
    "s": 80.095,
    "l": 58.627
  },
  "oklch": {
    "l": 0.51475,
    "c": 0.23924,
    "h": 280
  },
  "luminance": 0.11796
}

Semantic roles & 50–950 ramp

primary
#5841EA
secondary
#DCE5A2
accent
#F731DC
background
#FAF7FF
surface
#F4EDFE
border
#CEC8D6
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5841EA

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

Preview Lab → · Contrast checker → · Palette generator →

#5841EA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva