#5851E5#5851E5

#5851E5 is a mid, highly saturated blue. Relative luminance 0.136; OKLCH L 53.3% C 0.216 H 278.2°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#5851E5
RGBrgb(88, 81, 229)
HSLhsl(243, 74%, 61%)
HSVhsv(243, 65%, 90%)
CMYKcmyk(61.6%, 64.6%, 0%, 10.2%)
CIE-LABlab(43.68, 45.55, -74.23)
CIE-LCHlch(43.68, 87.09, 301.53°)
OKLaboklab(53.34% 0.031 -0.2139)
OKLCHoklch(53.34% 0.216 278.2)
XYZxyz(21.1052, 13.6151, 75.6293)
Luminance0.1362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5851E5 #DEE551
analogous
#5194E5 #5851E5 #A251E5
triadic
#5851E5 #E55851 #51E558
tetradic
#5851E5 #E55194 #DEE551 #51E5A2
square
#5851E5 #E55194 #DEE551 #51E5A2
split-complementary
#5851E5 #E5A251 #94E551
monochromatic
#1F18A3 #2920D8 #5851E5 #8B86ED #BEBBF5

Accessibility & contrast

On white

5.64
#5851E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#5851E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5851E5
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5851E5#FFFFFF#000000##FFFFFF
##5851E51.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DEA
Deuteranopia (green-blind)
#0061E2
Tritanopia (blue-blind)
#007794
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5851e5;
/* rgb */ color: rgb(88, 81, 229);
/* oklch */ color: oklch(53.3% 0.216 278.2);
Tailwind
colors: {
  custom: {
    50: '#9683ee',
    500: '#5851e5',
    950: '#000000',
  },
}
SCSS
$custom: #5851e5;
$custom-light: #9683ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5851e5",
  "rgb": {
    "r": 88,
    "g": 81,
    "b": 229
  },
  "hsl": {
    "h": 242.838,
    "s": 74,
    "l": 60.784
  },
  "oklch": {
    "l": 0.53344,
    "c": 0.21613,
    "h": 278.2
  },
  "luminance": 0.13617
}

Semantic roles & 50–950 ramp

primary
#5851E5
secondary
#E2E5AD
accent
#D60FCD
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5851E5

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

Preview Lab → · Contrast checker → · Palette generator →

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