#5B54E3#5B54E3

#5B54E3 is a mid, highly saturated blue. Relative luminance 0.141; OKLCH L 53.9% C 0.210 H 278.9°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#5B54E3
RGBrgb(91, 84, 227)
HSLhsl(243, 72%, 61%)
HSVhsv(243, 63%, 89%)
CMYKcmyk(59.9%, 63%, 0%, 11%)
CIE-LABlab(44.39, 43.62, -71.92)
CIE-LCHlch(44.39, 84.12, 301.24°)
OKLaboklab(53.87% 0.0323 -0.207)
OKLCHoklch(53.87% 0.21 278.9)
XYZxyz(21.3454, 14.1093, 74.2567)
Luminance0.1411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B54E3 #DCE354
analogous
#5494E3 #5B54E3 #A254E3
triadic
#5B54E3 #E35B54 #54E35B
tetradic
#5B54E3 #E35494 #DCE354 #54E3A2
square
#5B54E3 #E35494 #DCE354 #54E3A2
split-complementary
#5B54E3 #E3A254 #94E354
monochromatic
#211BA2 #2C23D7 #5B54E3 #8D89EC #C0BDF4

Accessibility & contrast

On white

5.49
#5B54E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5B54E3
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B54E3#FFFFFF#000000##FFFFFF
##5B54E31.005.493.825.49
#FFFFFF5.491.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE8
Deuteranopia (green-blind)
#0063E0
Tritanopia (blue-blind)
#007894
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5b54e3;
/* rgb */ color: rgb(91, 84, 227);
/* oklch */ color: oklch(53.9% 0.210 278.9);
Tailwind
colors: {
  custom: {
    50: '#9785ed',
    500: '#5b54e3',
    950: '#000000',
  },
}
SCSS
$custom: #5b54e3;
$custom-light: #9785ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5b54e3",
  "rgb": {
    "r": 91,
    "g": 84,
    "b": 227
  },
  "hsl": {
    "h": 242.937,
    "s": 71.859,
    "l": 60.98
  },
  "oklch": {
    "l": 0.53869,
    "c": 0.20955,
    "h": 278.9
  },
  "luminance": 0.14111
}

Semantic roles & 50–950 ramp

primary
#5B54E3
secondary
#E2E4AE
accent
#D412CA
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0B16
muted
#7F7C84

Preview Lab

Preview with #5B54E3

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

Preview Lab → · Contrast checker → · Palette generator →

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