#5851E1#5851E1

#5851E1 is a mid, highly saturated blue. Relative luminance 0.134; OKLCH L 53.0% C 0.211 H 278.5°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#5851E1
RGBrgb(88, 81, 225)
HSLhsl(243, 71%, 60%)
HSVhsv(243, 64%, 88%)
CMYKcmyk(60.9%, 64%, 0%, 11.8%)
CIE-LABlab(43.35, 44.29, -72.49)
CIE-LCHlch(43.35, 84.95, 301.42°)
OKLaboklab(53.01% 0.0314 -0.2088)
OKLCHoklch(53.01% 0.211 278.5)
XYZxyz(20.5532, 13.3942, 72.7218)
Luminance0.1340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5851E1 #DAE151
analogous
#5192E1 #5851E1 #A051E1
triadic
#5851E1 #E15851 #51E158
tetradic
#5851E1 #E15192 #DAE151 #51E1A0
square
#5851E1 #E15192 #DAE151 #51E1A0
split-complementary
#5851E1 #E1A051 #92E151
monochromatic
#211B9D #2C24D1 #5851E1 #8A85EA #BCB9F3

Accessibility & contrast

On white

5.71
#5851E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#5851E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5851E1
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5851E1#FFFFFF#000000##FFFFFF
##5851E11.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE6
Deuteranopia (green-blind)
#0061DE
Tritanopia (blue-blind)
#007692
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5851e1;
/* rgb */ color: rgb(88, 81, 225);
/* oklch */ color: oklch(53.0% 0.211 278.5);
Tailwind
colors: {
  custom: {
    50: '#9582eb',
    500: '#5851e1',
    950: '#000000',
  },
}
SCSS
$custom: #5851e1;
$custom-light: #9582eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5851e1",
  "rgb": {
    "r": 88,
    "g": 81,
    "b": 225
  },
  "hsl": {
    "h": 242.917,
    "s": 70.588,
    "l": 60
  },
  "oklch": {
    "l": 0.53008,
    "c": 0.21114,
    "h": 278.5
  },
  "luminance": 0.13396
}

Semantic roles & 50–950 ramp

primary
#5851E1
secondary
#E0E3AB
accent
#ED3AE5
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0F0A16
muted
#7E7C84

Preview Lab

Preview with #5851E1

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

Preview Lab → · Contrast checker → · Palette generator →

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