#5B54ED#5B54ED

#5B54ED is a mid, highly saturated blue. Relative luminance 0.147; OKLCH L 54.7% C 0.222 H 278.1°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#5B54ED
RGBrgb(91, 84, 237)
HSLhsl(243, 81%, 63%)
HSVhsv(243, 65%, 93%)
CMYKcmyk(61.6%, 64.6%, 0%, 7.1%)
CIE-LABlab(45.19, 46.77, -76.27)
CIE-LCHlch(45.19, 89.47, 301.52°)
OKLaboklab(54.7% 0.0315 -0.2198)
OKLCHoklch(54.7% 0.222 278.1)
XYZxyz(22.7659, 14.6774, 81.7377)
Luminance0.1468 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B54ED #E6ED54
analogous
#5499ED #5B54ED #A754ED
triadic
#5B54ED #ED5B54 #54ED5B
tetradic
#5B54ED #ED5499 #E6ED54 #54EDA7
square
#5B54ED #ED5499 #E6ED54 #54EDA7
split-complementary
#5B54ED #EDA754 #99ED54
monochromatic
#1A13B4 #261DE7 #5B54ED #908BF3 #C5C3F9

Accessibility & contrast

On white

5.34
#5B54ED on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#5B54ED on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B54ED
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B54ED#FFFFFF#000000##FFFFFF
##5B54ED1.005.343.945.34
#FFFFFF5.341.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071F2
Deuteranopia (green-blind)
#0065EA
Tritanopia (blue-blind)
#007B99
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5b54ed;
/* rgb */ color: rgb(91, 84, 237);
/* oklch */ color: oklch(54.7% 0.222 278.1);
Tailwind
colors: {
  custom: {
    50: '#9885f4',
    500: '#5b54ed',
    950: '#000000',
  },
}
SCSS
$custom: #5b54ed;
$custom-light: #9885f4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b54ed",
  "rgb": {
    "r": 91,
    "g": 84,
    "b": 237
  },
  "hsl": {
    "h": 242.745,
    "s": 80.952,
    "l": 62.941
  },
  "oklch": {
    "l": 0.54699,
    "c": 0.22203,
    "h": 278.1
  },
  "luminance": 0.14679
}

Semantic roles & 50–950 ramp

primary
#5B54ED
secondary
#E7EAB3
accent
#DD08D4
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5B54ED

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

Preview Lab → · Contrast checker → · Palette generator →

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