#5B54E6#5B54E6

#5B54E6 is a mid, highly saturated blue. Relative luminance 0.143; OKLCH L 54.1% C 0.213 H 278.7°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#5B54E6
RGBrgb(91, 84, 230)
HSLhsl(243, 74%, 62%)
HSVhsv(243, 63%, 90%)
CMYKcmyk(60.4%, 63.5%, 0%, 9.8%)
CIE-LABlab(44.63, 44.57, -73.24)
CIE-LCHlch(44.63, 85.73, 301.32°)
OKLaboklab(54.12% 0.0321 -0.2109)
OKLCHoklch(54.12% 0.213 278.7)
XYZxyz(21.7631, 14.2763, 76.4563)
Luminance0.1428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B54E6 #DFE654
analogous
#5496E6 #5B54E6 #A454E6
triadic
#5B54E6 #E65B54 #54E65B
tetradic
#5B54E6 #E65496 #DFE654 #54E6A4
square
#5B54E6 #E65496 #DFE654 #54E6A4
split-complementary
#5B54E6 #E6A454 #96E654
monochromatic
#1F18A7 #2920DD #5B54E6 #8E89EE #C1BFF6

Accessibility & contrast

On white

5.45
#5B54E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#5B54E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B54E6
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B54E6#FFFFFF#000000##FFFFFF
##5B54E61.005.453.865.45
#FFFFFF5.451.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FEB
Deuteranopia (green-blind)
#0064E3
Tritanopia (blue-blind)
#007995
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5b54e6;
/* rgb */ color: rgb(91, 84, 230);
/* oklch */ color: oklch(54.1% 0.213 278.7);
Tailwind
colors: {
  custom: {
    50: '#9785ef',
    500: '#5b54e6',
    950: '#000000',
  },
}
SCSS
$custom: #5b54e6;
$custom-light: #9785ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5b54e6",
  "rgb": {
    "r": 91,
    "g": 84,
    "b": 230
  },
  "hsl": {
    "h": 242.877,
    "s": 74.49,
    "l": 61.569
  },
  "oklch": {
    "l": 0.54116,
    "c": 0.21332,
    "h": 278.7
  },
  "luminance": 0.14278
}

Semantic roles & 50–950 ramp

primary
#5B54E6
secondary
#E3E6B0
accent
#D70FCD
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5B54E6

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

Preview Lab → · Contrast checker → · Palette generator →

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