#5847EB#5847EB

#5847EB is a mid, highly saturated blue. Relative luminance 0.126; OKLCH L 52.4% C 0.234 H 279.2°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#5847EB
RGBrgb(88, 71, 235)
HSLhsl(246, 80%, 60%)
HSVhsv(246, 70%, 92%)
CMYKcmyk(62.6%, 69.8%, 0%, 7.8%)
CIE-LABlab(42.12, 53.04, -80.18)
CIE-LCHlch(42.12, 96.13, 303.48°)
OKLaboklab(52.38% 0.0376 -0.2313)
OKLCHoklch(52.38% 0.234 279.2)
XYZxyz(21.2683, 12.5777, 79.8881)
Luminance0.1258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5847EB #DAEB47
analogous
#4788EB #5847EB #AA47EB
triadic
#5847EB #EB5847 #47EB58
tetradic
#5847EB #EB4788 #DAEB47 #47EBAA
square
#5847EB #EB4788 #DAEB47 #47EBAA
split-complementary
#5847EB #EBAA47 #88EB47
monochromatic
#2112A6 #2C18DD #5847EB #8A7EF1 #BCB5F7

Accessibility & contrast

On white

5.97
#5847EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#5847EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5847EB
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5847EB#FFFFFF#000000##FFFFFF
##5847EB1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AF0
Deuteranopia (green-blind)
#005DE8
Tritanopia (blue-blind)
#007494
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5847eb;
/* rgb */ color: rgb(88, 71, 235);
/* oklch */ color: oklch(52.4% 0.234 279.2);
Tailwind
colors: {
  custom: {
    50: '#977cf3',
    500: '#5847eb',
    950: '#000000',
  },
}
SCSS
$custom: #5847eb;
$custom-light: #977cf3;
$custom-dark: #000000;
JSON
{
  "hex": "#5847eb",
  "rgb": {
    "r": 88,
    "g": 71,
    "b": 235
  },
  "hsl": {
    "h": 246.22,
    "s": 80.392,
    "l": 60
  },
  "oklch": {
    "l": 0.5238,
    "c": 0.23435,
    "h": 279.2
  },
  "luminance": 0.12579
}

Semantic roles & 50–950 ramp

primary
#5847EB
secondary
#E0E6A7
accent
#F731E2
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5847EB

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

Preview Lab → · Contrast checker → · Palette generator →

#5847EB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva