#5C54EA#5C54EA

#5C54EA is a mid, highly saturated blue. Relative luminance 0.146; OKLCH L 54.5% C 0.218 H 278.7°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#5C54EA
RGBrgb(92, 84, 234)
HSLhsl(243, 78%, 62%)
HSVhsv(243, 64%, 92%)
CMYKcmyk(60.7%, 64.1%, 0%, 8.2%)
CIE-LABlab(45.02, 45.97, -74.85)
CIE-LCHlch(45.02, 87.85, 301.56°)
OKLaboklab(54.52% 0.033 -0.2156)
OKLCHoklch(54.52% 0.218 278.7)
XYZxyz(22.4305, 14.5548, 79.4533)
Luminance0.1456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C54EA #E2EA54
analogous
#5497EA #5C54EA #A754EA
triadic
#5C54EA #EA5C54 #54EA5C
tetradic
#5C54EA #EA5497 #E2EA54 #54EAA7
square
#5C54EA #EA5497 #E2EA54 #54EAA7
split-complementary
#5C54EA #EAA754 #97EA54
monochromatic
#1E15AE #281DE3 #5C54EA #908BF1 #C4C1F7

Accessibility & contrast

On white

5.37
#5C54EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#5C54EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C54EA
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C54EA#FFFFFF#000000##FFFFFF
##5C54EA1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071EF
Deuteranopia (green-blind)
#0064E7
Tritanopia (blue-blind)
#007A98
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5c54ea;
/* rgb */ color: rgb(92, 84, 234);
/* oklch */ color: oklch(54.5% 0.218 278.7);
Tailwind
colors: {
  custom: {
    50: '#9885f2',
    500: '#5c54ea',
    950: '#000000',
  },
}
SCSS
$custom: #5c54ea;
$custom-light: #9885f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5c54ea",
  "rgb": {
    "r": 92,
    "g": 84,
    "b": 234
  },
  "hsl": {
    "h": 243.2,
    "s": 78.125,
    "l": 62.353
  },
  "oklch": {
    "l": 0.54518,
    "c": 0.21811,
    "h": 278.7
  },
  "luminance": 0.14556
}

Semantic roles & 50–950 ramp

primary
#5C54EA
secondary
#E5E8B2
accent
#DA0BCF
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5C54EA

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

Preview Lab → · Contrast checker → · Palette generator →

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