#5851E8#5851E8

#5851E8 is a mid, highly saturated blue. Relative luminance 0.138; OKLCH L 53.6% C 0.220 H 278.0°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#5851E8
RGBrgb(88, 81, 232)
HSLhsl(243, 77%, 61%)
HSVhsv(243, 65%, 91%)
CMYKcmyk(62.1%, 65.1%, 0%, 9%)
CIE-LABlab(43.92, 46.50, -75.53)
CIE-LCHlch(43.92, 88.70, 301.62°)
OKLaboklab(53.6% 0.0307 -0.2177)
OKLCHoklch(53.6% 0.22 278)
XYZxyz(21.5277, 13.7841, 77.8544)
Luminance0.1379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5851E8 #E1E851
analogous
#5196E8 #5851E8 #A351E8
triadic
#5851E8 #E85851 #51E858
tetradic
#5851E8 #E85196 #E1E851 #51E8A3
square
#5851E8 #E85196 #E1E851 #51E8A3
split-complementary
#5851E8 #E8A351 #96E851
monochromatic
#1D16A8 #261DDE #5851E8 #8C87EF #C0BDF6

Accessibility & contrast

On white

5.59
#5851E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#5851E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5851E8
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5851E8#FFFFFF#000000##FFFFFF
##5851E81.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EED
Deuteranopia (green-blind)
#0062E5
Tritanopia (blue-blind)
#007895
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5851e8;
/* rgb */ color: rgb(88, 81, 232);
/* oklch */ color: oklch(53.6% 0.220 278.0);
Tailwind
colors: {
  custom: {
    50: '#9683f0',
    500: '#5851e8',
    950: '#000000',
  },
}
SCSS
$custom: #5851e8;
$custom-light: #9683f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5851e8",
  "rgb": {
    "r": 88,
    "g": 81,
    "b": 232
  },
  "hsl": {
    "h": 242.781,
    "s": 76.65,
    "l": 61.373
  },
  "oklch": {
    "l": 0.53599,
    "c": 0.21986,
    "h": 278
  },
  "luminance": 0.13786
}

Semantic roles & 50–950 ramp

primary
#5851E8
secondary
#E4E7AE
accent
#D90DCF
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5851E8

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

Preview Lab → · Contrast checker → · Palette generator →

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