#5851EB#5851EB

#5851EB is a mid, highly saturated blue. Relative luminance 0.140; OKLCH L 53.9% C 0.224 H 277.8°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#5851EB
RGBrgb(88, 81, 235)
HSLhsl(243, 79%, 62%)
HSVhsv(243, 66%, 92%)
CMYKcmyk(62.6%, 65.5%, 0%, 7.8%)
CIE-LABlab(44.17, 47.44, -76.82)
CIE-LCHlch(44.17, 90.29, 301.70°)
OKLaboklab(53.86% 0.0304 -0.2215)
OKLCHoklch(53.86% 0.224 277.8)
XYZxyz(21.9575, 13.9560, 80.1178)
Luminance0.1396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5851EB #E4EB51
analogous
#5197EB #5851EB #A551EB
triadic
#5851EB #EB5851 #51EB58
tetradic
#5851EB #EB5197 #E4EB51 #51EBA5
square
#5851EB #EB5197 #E4EB51 #51EBA5
split-complementary
#5851EB #EBA551 #97EB51
monochromatic
#1B14AE #231AE5 #5851EB #8D88F1 #C1BFF8

Accessibility & contrast

On white

5.54
#5851EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#5851EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5851EB
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5851EB#FFFFFF#000000##FFFFFF
##5851EB1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FF0
Deuteranopia (green-blind)
#0062E8
Tritanopia (blue-blind)
#007997
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5851eb;
/* rgb */ color: rgb(88, 81, 235);
/* oklch */ color: oklch(53.9% 0.224 277.8);
Tailwind
colors: {
  custom: {
    50: '#9783f3',
    500: '#5851eb',
    950: '#000000',
  },
}
SCSS
$custom: #5851eb;
$custom-light: #9783f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5851eb",
  "rgb": {
    "r": 88,
    "g": 81,
    "b": 235
  },
  "hsl": {
    "h": 242.727,
    "s": 79.381,
    "l": 61.961
  },
  "oklch": {
    "l": 0.53855,
    "c": 0.22355,
    "h": 277.8
  },
  "luminance": 0.13958
}

Semantic roles & 50–950 ramp

primary
#5851EB
secondary
#E6E8B0
accent
#DC0AD2
background
#FAF8FF
surface
#F3EFFE
border
#CDCAD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5851EB

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

Preview Lab → · Contrast checker → · Palette generator →

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