#5C5CEB#5C5CEB

#5C5CEB is a mid, highly saturated blue. Relative luminance 0.159; OKLCH L 55.9% C 0.210 H 277.2°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#5C5CEB
RGBrgb(92, 92, 235)
HSLhsl(240, 78%, 64%)
HSVhsv(240, 61%, 92%)
CMYKcmyk(60.9%, 60.9%, 0%, 7.8%)
CIE-LABlab(46.88, 41.60, -72.39)
CIE-LCHlch(46.88, 83.49, 299.88°)
OKLaboklab(55.9% 0.0262 -0.2083)
OKLCHoklch(55.9% 0.21 277.2)
XYZxyz(23.2313, 15.9260, 80.4309)
Luminance0.1593 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C5CEB #EBEB5C
analogous
#5CA4EB #5C5CEB #A45CEB
triadic
#5C5CEB #EB5C5C #5CEB5C
tetradic
#5C5CEB #EB5CA4 #EBEB5C #5CEBA4
square
#5C5CEB #EB5CA4 #EBEB5C #5CEBA4
split-complementary
#5C5CEB #EBA45C #A4EB5C
monochromatic
#1616B6 #2525E4 #5C5CEB #9393F2 #C9C9F8

Accessibility & contrast

On white

5.02
#5C5CEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#5C5CEB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C5CEB
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C5CEB#FFFFFF#000000##FFFFFF
##5C5CEB1.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F0
Deuteranopia (green-blind)
#0069E8
Tritanopia (blue-blind)
#007F9B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5c5ceb;
/* rgb */ color: rgb(92, 92, 235);
/* oklch */ color: oklch(55.9% 0.210 277.2);
Tailwind
colors: {
  custom: {
    50: '#988af2',
    500: '#5c5ceb',
    950: '#000000',
  },
}
SCSS
$custom: #5c5ceb;
$custom-light: #988af2;
$custom-dark: #000000;
JSON
{
  "hex": "#5c5ceb",
  "rgb": {
    "r": 92,
    "g": 92,
    "b": 235
  },
  "hsl": {
    "h": 240,
    "s": 78.142,
    "l": 64.118
  },
  "oklch": {
    "l": 0.55901,
    "c": 0.20997,
    "h": 277.2
  },
  "luminance": 0.15928
}

Semantic roles & 50–950 ramp

primary
#5C5CEB
secondary
#EAEAB8
accent
#DA0BDA
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5C5CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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