#5851E7#5851E7

#5851E7 is a mid, highly saturated blue. Relative luminance 0.137; OKLCH L 53.5% C 0.219 H 278.1°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#5851E7
RGBrgb(88, 81, 231)
HSLhsl(243, 76%, 61%)
HSVhsv(243, 65%, 91%)
CMYKcmyk(61.9%, 64.9%, 0%, 9.4%)
CIE-LABlab(43.84, 46.18, -75.10)
CIE-LCHlch(43.84, 88.16, 301.59°)
OKLaboklab(53.51% 0.0308 -0.2164)
OKLCHoklch(53.51% 0.219 278.1)
XYZxyz(21.3861, 13.7274, 77.1085)
Luminance0.1373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5851E7 #E0E751
analogous
#5195E7 #5851E7 #A351E7
triadic
#5851E7 #E75851 #51E758
tetradic
#5851E7 #E75195 #E0E751 #51E7A3
square
#5851E7 #E75195 #E0E751 #51E7A3
split-complementary
#5851E7 #E7A351 #95E751
monochromatic
#1E17A7 #271EDC #5851E7 #8C87EE #BFBDF6

Accessibility & contrast

On white

5.61
#5851E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#5851E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5851E7
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5851E7#FFFFFF#000000##FFFFFF
##5851E71.005.613.755.61
#FFFFFF5.611.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EEC
Deuteranopia (green-blind)
#0061E4
Tritanopia (blue-blind)
#007895
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5851e7;
/* rgb */ color: rgb(88, 81, 231);
/* oklch */ color: oklch(53.5% 0.219 278.1);
Tailwind
colors: {
  custom: {
    50: '#9683f0',
    500: '#5851e7',
    950: '#000000',
  },
}
SCSS
$custom: #5851e7;
$custom-light: #9683f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5851e7",
  "rgb": {
    "r": 88,
    "g": 81,
    "b": 231
  },
  "hsl": {
    "h": 242.8,
    "s": 75.758,
    "l": 61.176
  },
  "oklch": {
    "l": 0.53514,
    "c": 0.21862,
    "h": 278.1
  },
  "luminance": 0.13729
}

Semantic roles & 50–950 ramp

primary
#5851E7
secondary
#E3E6AE
accent
#D80ECE
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5851E7

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

Preview Lab → · Contrast checker → · Palette generator →

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