#5851EC#5851EC

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

Color values

HEX#5851EC
RGBrgb(88, 81, 236)
HSLhsl(243, 80%, 62%)
HSVhsv(243, 66%, 93%)
CMYKcmyk(62.7%, 65.7%, 0%, 7.5%)
CIE-LABlab(44.25, 47.76, -77.25)
CIE-LCHlch(44.25, 90.82, 301.73°)
OKLaboklab(53.94% 0.0302 -0.2227)
OKLCHoklch(53.94% 0.225 277.7)
XYZxyz(22.1024, 14.0139, 80.8808)
Luminance0.1402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5851EC #E5EC51
analogous
#5197EC #5851EC #A651EC
triadic
#5851EC #EC5851 #51EC58
tetradic
#5851EC #EC5197 #E5EC51 #51ECA6
square
#5851EC #EC5197 #E5EC51 #51ECA6
split-complementary
#5851EC #ECA651 #97EC51
monochromatic
#1A13AF #231AE6 #5851EC #8D88F2 #C2BFF8

Accessibility & contrast

On white

5.52
#5851EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#5851EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5851EC
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5851EC#FFFFFF#000000##FFFFFF
##5851EC1.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FF1
Deuteranopia (green-blind)
#0062E9
Tritanopia (blue-blind)
#007998
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5851ec;
/* rgb */ color: rgb(88, 81, 236);
/* oklch */ color: oklch(53.9% 0.225 277.7);
Tailwind
colors: {
  custom: {
    50: '#9783f3',
    500: '#5851ec',
    950: '#000000',
  },
}
SCSS
$custom: #5851ec;
$custom-light: #9783f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5851ec",
  "rgb": {
    "r": 88,
    "g": 81,
    "b": 236
  },
  "hsl": {
    "h": 242.71,
    "s": 80.311,
    "l": 62.157
  },
  "oklch": {
    "l": 0.53941,
    "c": 0.22478,
    "h": 277.7
  },
  "luminance": 0.14016
}

Semantic roles & 50–950 ramp

primary
#5851EC
secondary
#E6E9B0
accent
#DD09D3
background
#FAF8FF
surface
#F3EFFE
border
#CDCAD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5851EC

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

Preview Lab → · Contrast checker → · Palette generator →

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