#5C51E9#5C51E9

#5C51E9 is a mid, highly saturated blue. Relative luminance 0.140; OKLCH L 54.0% C 0.220 H 279.3°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#5C51E9
RGBrgb(92, 81, 233)
HSLhsl(244, 78%, 62%)
HSVhsv(244, 65%, 91%)
CMYKcmyk(60.5%, 65.2%, 0%, 8.6%)
CIE-LABlab(44.29, 47.39, -75.48)
CIE-LCHlch(44.29, 89.12, 302.12°)
OKLaboklab(53.97% 0.0355 -0.2174)
OKLCHoklch(53.97% 0.22 279.3)
XYZxyz(22.0594, 14.0417, 78.6229)
Luminance0.1404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C51E9 #DEE951
analogous
#5192E9 #5C51E9 #A851E9
triadic
#5C51E9 #E95C51 #51E95C
tetradic
#5C51E9 #E95192 #DEE951 #51E9A8
square
#5C51E9 #E95192 #DEE951 #51E9A8
split-complementary
#5C51E9 #E9A851 #92E951
monochromatic
#2016AA #2B1CE0 #5C51E9 #8F87F0 #C2BEF7

Accessibility & contrast

On white

5.51
#5C51E9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#5C51E9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C51E9
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C51E9#FFFFFF#000000##FFFFFF
##5C51E91.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FEE
Deuteranopia (green-blind)
#0063E6
Tritanopia (blue-blind)
#007896
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5c51e9;
/* rgb */ color: rgb(92, 81, 233);
/* oklch */ color: oklch(54.0% 0.220 279.3);
Tailwind
colors: {
  custom: {
    50: '#9883f1',
    500: '#5c51e9',
    950: '#000000',
  },
}
SCSS
$custom: #5c51e9;
$custom-light: #9883f1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c51e9",
  "rgb": {
    "r": 92,
    "g": 81,
    "b": 233
  },
  "hsl": {
    "h": 244.342,
    "s": 77.551,
    "l": 61.569
  },
  "oklch": {
    "l": 0.53967,
    "c": 0.22031,
    "h": 279.3
  },
  "luminance": 0.14043
}

Semantic roles & 50–950 ramp

primary
#5C51E9
secondary
#E3E7AF
accent
#DA0CCB
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5C51E9

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

Preview Lab → · Contrast checker → · Palette generator →

#5C51E9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva