#5842E5#5842E5

#5842E5 is a mid, highly saturated blue. Relative luminance 0.116; OKLCH L 51.1% C 0.232 H 280.4°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#5842E5
RGBrgb(88, 66, 229)
HSLhsl(248, 76%, 58%)
HSVhsv(248, 71%, 90%)
CMYKcmyk(61.6%, 71.2%, 0%, 10.2%)
CIE-LABlab(40.62, 53.91, -79.25)
CIE-LCHlch(40.62, 95.85, 304.22°)
OKLaboklab(51.15% 0.0421 -0.2286)
OKLCHoklch(51.15% 0.232 280.4)
XYZxyz(20.1111, 11.6268, 75.2980)
Luminance0.1163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5842E5 #CFE542
analogous
#427DE5 #5842E5 #A942E5
triadic
#5842E5 #E55842 #42E558
tetradic
#5842E5 #E5427D #CFE542 #42E5A9
square
#5842E5 #E5427D #CFE542 #42E5A9
split-complementary
#5842E5 #E5A942 #7DE542
monochromatic
#271598 #341CCE #5842E5 #8878EC #B7AEF4

Accessibility & contrast

On white

6.31
#5842E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#5842E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5842E5
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5842E5#FFFFFF#000000##FFFFFF
##5842E51.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066EA
Deuteranopia (green-blind)
#005AE2
Tritanopia (blue-blind)
#006F8F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5842e5;
/* rgb */ color: rgb(88, 66, 229);
/* oklch */ color: oklch(51.1% 0.232 280.4);
Tailwind
colors: {
  custom: {
    50: '#9779ef',
    500: '#5842e5',
    950: '#000000',
  },
}
SCSS
$custom: #5842e5;
$custom-light: #9779ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5842e5",
  "rgb": {
    "r": 88,
    "g": 66,
    "b": 229
  },
  "hsl": {
    "h": 248.098,
    "s": 75.814,
    "l": 57.843
  },
  "oklch": {
    "l": 0.51145,
    "c": 0.23242,
    "h": 280.4
  },
  "luminance": 0.11628
}

Semantic roles & 50–950 ramp

primary
#5842E5
secondary
#D9E2A1
accent
#F235D9
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5842E5

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

Preview Lab → · Contrast checker → · Palette generator →

#5842E5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva