#5B54DC#5B54DC

#5B54DC is a mid, highly saturated blue. Relative luminance 0.137; OKLCH L 53.3% C 0.201 H 279.4°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#5B54DC
RGBrgb(91, 84, 220)
HSLhsl(243, 66%, 60%)
HSVhsv(243, 62%, 86%)
CMYKcmyk(58.6%, 61.8%, 0%, 13.7%)
CIE-LABlab(43.84, 41.41, -68.83)
CIE-LCHlch(43.84, 80.33, 301.03°)
OKLaboklab(53.3% 0.0328 -0.198)
OKLCHoklch(53.3% 0.201 279.4)
XYZxyz(20.3989, 13.7307, 69.2716)
Luminance0.1373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B54DC #D5DC54
analogous
#5491DC #5B54DC #9F54DC
triadic
#5B54DC #DC5B54 #54DC5B
tetradic
#5B54DC #DC5491 #D5DC54 #54DC9F
square
#5B54DC #DC5491 #D5DC54 #54DC9F
split-complementary
#5B54DC #DC9F54 #91DC54
monochromatic
#251F97 #3229CA #5B54DC #8C87E6 #BCBAF1

Accessibility & contrast

On white

5.61
#5B54DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#5B54DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B54DC
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B54DC#FFFFFF#000000##FFFFFF
##5B54DC1.005.613.755.61
#FFFFFF5.611.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE0
Deuteranopia (green-blind)
#0062D9
Tritanopia (blue-blind)
#007690
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5b54dc;
/* rgb */ color: rgb(91, 84, 220);
/* oklch */ color: oklch(53.3% 0.201 279.4);
Tailwind
colors: {
  custom: {
    50: '#9585e8',
    500: '#5b54dc',
    950: '#000000',
  },
}
SCSS
$custom: #5b54dc;
$custom-light: #9585e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b54dc",
  "rgb": {
    "r": 91,
    "g": 84,
    "b": 220
  },
  "hsl": {
    "h": 243.088,
    "s": 66.019,
    "l": 59.608
  },
  "oklch": {
    "l": 0.53301,
    "c": 0.20067,
    "h": 279.4
  },
  "luminance": 0.13732
}

Semantic roles & 50–950 ramp

primary
#5B54DC
secondary
#DEE0AC
accent
#E93FE0
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0F0B16
muted
#7E7C84

Preview Lab

Preview with #5B54DC

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

Preview Lab → · Contrast checker → · Palette generator →

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