#5851DC#5851DC

#5851DC is a mid, highly saturated blue. Relative luminance 0.131; OKLCH L 52.6% C 0.205 H 278.9°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#5851DC
RGBrgb(88, 81, 220)
HSLhsl(243, 67%, 59%)
HSVhsv(243, 63%, 86%)
CMYKcmyk(60%, 63.2%, 0%, 13.7%)
CIE-LABlab(42.95, 42.70, -70.30)
CIE-LCHlch(42.95, 82.25, 301.28°)
OKLaboklab(52.59% 0.0318 -0.2024)
OKLCHoklch(52.59% 0.205 278.9)
XYZxyz(19.8811, 13.1254, 69.1821)
Luminance0.1313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5851DC #D5DC51
analogous
#5190DC #5851DC #9E51DC
triadic
#5851DC #DC5851 #51DC58
tetradic
#5851DC #DC5190 #D5DC51 #51DC9E
square
#5851DC #DC5190 #D5DC51 #51DC9E
split-complementary
#5851DC #DC9E51 #90DC51
monochromatic
#241E95 #3028C8 #5851DC #8984E6 #BAB7F0

Accessibility & contrast

On white

5.79
#5851DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#5851DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5851DC
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5851DC#FFFFFF#000000##FFFFFF
##5851DC1.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE0
Deuteranopia (green-blind)
#0060D9
Tritanopia (blue-blind)
#00748F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5851dc;
/* rgb */ color: rgb(88, 81, 220);
/* oklch */ color: oklch(52.6% 0.205 278.9);
Tailwind
colors: {
  custom: {
    50: '#9482e8',
    500: '#5851dc',
    950: '#000000',
  },
}
SCSS
$custom: #5851dc;
$custom-light: #9482e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5851dc",
  "rgb": {
    "r": 88,
    "g": 81,
    "b": 220
  },
  "hsl": {
    "h": 243.022,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.52592,
    "c": 0.20484,
    "h": 278.9
  },
  "luminance": 0.13127
}

Semantic roles & 50–950 ramp

primary
#5851DC
secondary
#DDE0A9
accent
#E93EE1
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5851DC

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

Preview Lab → · Contrast checker → · Palette generator →

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