#5C51EA#5C51EA

#5C51EA is a mid, highly saturated blue. Relative luminance 0.141; OKLCH L 54.1% C 0.222 H 279.2°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#5C51EA
RGBrgb(92, 81, 234)
HSLhsl(244, 78%, 62%)
HSVhsv(244, 65%, 92%)
CMYKcmyk(60.7%, 65.4%, 0%, 8.2%)
CIE-LABlab(44.37, 47.70, -75.91)
CIE-LCHlch(44.37, 89.65, 302.14°)
OKLaboklab(54.05% 0.0354 -0.2187)
OKLCHoklch(54.05% 0.222 279.2)
XYZxyz(22.2026, 14.0990, 79.3773)
Luminance0.1410 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C51EA #DFEA51
analogous
#5193EA #5C51EA #A951EA
triadic
#5C51EA #EA5C51 #51EA5C
tetradic
#5C51EA #EA5193 #DFEA51 #51EAA9
square
#5C51EA #EA5193 #DFEA51 #51EAA9
split-complementary
#5C51EA #EAA951 #93EA51
monochromatic
#2015AC #2A1BE2 #5C51EA #8F88F1 #C2BEF7

Accessibility & contrast

On white

5.50
#5C51EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#5C51EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C51EA
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C51EA#FFFFFF#000000##FFFFFF
##5C51EA1.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FEF
Deuteranopia (green-blind)
#0063E7
Tritanopia (blue-blind)
#007997
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5c51ea;
/* rgb */ color: rgb(92, 81, 234);
/* oklch */ color: oklch(54.1% 0.222 279.2);
Tailwind
colors: {
  custom: {
    50: '#9983f2',
    500: '#5c51ea',
    950: '#000000',
  },
}
SCSS
$custom: #5c51ea;
$custom-light: #9983f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5c51ea",
  "rgb": {
    "r": 92,
    "g": 81,
    "b": 234
  },
  "hsl": {
    "h": 244.314,
    "s": 78.462,
    "l": 61.765
  },
  "oklch": {
    "l": 0.54051,
    "c": 0.22154,
    "h": 279.2
  },
  "luminance": 0.14101
}

Semantic roles & 50–950 ramp

primary
#5C51EA
secondary
#E4E8AF
accent
#DB0BCC
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5C51EA

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

Preview Lab → · Contrast checker → · Palette generator →

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