#5B54EF#5B54EF

#5B54EF is a mid, highly saturated blue. Relative luminance 0.148; OKLCH L 54.9% C 0.225 H 278.0°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#5B54EF
RGBrgb(91, 84, 239)
HSLhsl(243, 83%, 63%)
HSVhsv(243, 65%, 94%)
CMYKcmyk(61.9%, 64.9%, 0%, 6.3%)
CIE-LABlab(45.35, 47.40, -77.13)
CIE-LCHlch(45.35, 90.53, 301.57°)
OKLaboklab(54.87% 0.0313 -0.2223)
OKLCHoklch(54.87% 0.225 278)
XYZxyz(23.0597, 14.7950, 83.2852)
Luminance0.1480 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B54EF #E8EF54
analogous
#549AEF #5B54EF #A954EF
triadic
#5B54EF #EF5B54 #54EF5B
tetradic
#5B54EF #EF549A #E8EF54 #54EFA9
square
#5B54EF #EF549A #E8EF54 #54EFA9
split-complementary
#5B54EF #EFA954 #9AEF54
monochromatic
#1911B7 #251CEA #5B54EF #918CF4 #C6C4F9

Accessibility & contrast

On white

5.30
#5B54EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#5B54EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B54EF
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B54EF#FFFFFF#000000##FFFFFF
##5B54EF1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F4
Deuteranopia (green-blind)
#0065EC
Tritanopia (blue-blind)
#007C9A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5b54ef;
/* rgb */ color: rgb(91, 84, 239);
/* oklch */ color: oklch(54.9% 0.225 278.0);
Tailwind
colors: {
  custom: {
    50: '#9985f5',
    500: '#5b54ef',
    950: '#000000',
  },
}
SCSS
$custom: #5b54ef;
$custom-light: #9985f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b54ef",
  "rgb": {
    "r": 91,
    "g": 84,
    "b": 239
  },
  "hsl": {
    "h": 242.71,
    "s": 82.888,
    "l": 63.333
  },
  "oklch": {
    "l": 0.54868,
    "c": 0.2245,
    "h": 278
  },
  "luminance": 0.14797
}

Semantic roles & 50–950 ramp

primary
#5B54EF
secondary
#E9EBB4
accent
#DF06D5
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5B54EF

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

Preview Lab → · Contrast checker → · Palette generator →

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