#5851D8#5851D8

#5851D8 is a mid, vivid blue. Relative luminance 0.129; OKLCH L 52.3% C 0.200 H 279.2°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#5851D8
RGBrgb(88, 81, 216)
HSLhsl(243, 63%, 58%)
HSVhsv(243, 63%, 85%)
CMYKcmyk(59.3%, 62.5%, 0%, 15.3%)
CIE-LABlab(42.64, 41.43, -68.53)
CIE-LCHlch(42.64, 80.08, 301.16°)
OKLaboklab(52.26% 0.0321 -0.1972)
OKLCHoklch(52.26% 0.2 279.2)
XYZxyz(19.3577, 12.9160, 66.4254)
Luminance0.1292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5851D8 #D1D851
analogous
#518DD8 #5851D8 #9B51D8
triadic
#5851D8 #D85851 #51D858
tetradic
#5851D8 #D8518D #D1D851 #51D89B
square
#5851D8 #D8518D #D1D851 #51D89B
split-complementary
#5851D8 #D89B51 #8DD851
monochromatic
#26208F #332BC1 #5851D8 #8883E3 #B8B5EE

Accessibility & contrast

On white

5.86
#5851D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#5851D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5851D8
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5851D8#FFFFFF#000000##FFFFFF
##5851D81.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADC
Deuteranopia (green-blind)
#005FD5
Tritanopia (blue-blind)
#00738D
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5851d8;
/* rgb */ color: rgb(88, 81, 216);
/* oklch */ color: oklch(52.3% 0.200 279.2);
Tailwind
colors: {
  custom: {
    50: '#9382e5',
    500: '#5851d8',
    950: '#000000',
  },
}
SCSS
$custom: #5851d8;
$custom-light: #9382e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5851d8",
  "rgb": {
    "r": 88,
    "g": 81,
    "b": 216
  },
  "hsl": {
    "h": 243.111,
    "s": 63.38,
    "l": 58.235
  },
  "oklch": {
    "l": 0.52264,
    "c": 0.19975,
    "h": 279.2
  },
  "luminance": 0.12917
}

Semantic roles & 50–950 ramp

primary
#5851D8
secondary
#DADDA8
accent
#E641DE
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5851D8

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

Preview Lab → · Contrast checker → · Palette generator →

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