#5851C8#5851C8

#5851C8 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 51.0% C 0.179 H 280.6°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#5851C8
RGBrgb(88, 81, 200)
HSLhsl(244, 52%, 55%)
HSVhsv(244, 60%, 78%)
CMYKcmyk(56%, 59.5%, 0%, 21.6%)
CIE-LABlab(41.42, 36.35, -61.30)
CIE-LCHlch(41.42, 71.26, 300.67°)
OKLaboklab(50.99% 0.0329 -0.1759)
OKLCHoklch(50.99% 0.179 280.6)
XYZxyz(17.3890, 12.1286, 56.0571)
Luminance0.1213 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5851C8 #C1C851
analogous
#5186C8 #5851C8 #9351C8
triadic
#5851C8 #C85851 #51C858
tetradic
#5851C8 #C85186 #C1C851 #51C893
square
#5851C8 #C85186 #C1C851 #51C893
split-complementary
#5851C8 #C89351 #86C851
monochromatic
#2B2679 #3C35A7 #5851C8 #8580D7 #B1AEE5

Accessibility & contrast

On white

6.13
#5851C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#5851C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5851C8
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5851C8#FFFFFF#000000##FFFFFF
##5851C81.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CC
Deuteranopia (green-blind)
#005DC6
Tritanopia (blue-blind)
#1E6D85
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5851c8;
/* rgb */ color: rgb(88, 81, 200);
/* oklch */ color: oklch(51.0% 0.179 280.6);
Tailwind
colors: {
  custom: {
    50: '#9182da',
    500: '#5851c8',
    950: '#000000',
  },
}
SCSS
$custom: #5851c8;
$custom-light: #9182da;
$custom-dark: #000000;
JSON
{
  "hex": "#5851c8",
  "rgb": {
    "r": 88,
    "g": 81,
    "b": 200
  },
  "hsl": {
    "h": 243.529,
    "s": 51.965,
    "l": 55.098
  },
  "oklch": {
    "l": 0.5099,
    "c": 0.17895,
    "h": 280.6
  },
  "luminance": 0.1213
}

Semantic roles & 50–950 ramp

primary
#5851C8
secondary
#D0D3A1
accent
#DB4CD3
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5851C8

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

Preview Lab → · Contrast checker → · Palette generator →

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