#5B4EDA#5B4EDA

#5B4EDA is a mid, highly saturated blue. Relative luminance 0.127; OKLCH L 52.2% C 0.205 H 280.7°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#5B4EDA
RGBrgb(91, 78, 218)
HSLhsl(246, 65%, 58%)
HSVhsv(246, 64%, 85%)
CMYKcmyk(58.3%, 64.2%, 0%, 14.5%)
CIE-LABlab(42.36, 44.30, -70.11)
CIE-LCHlch(42.36, 82.94, 302.29°)
OKLaboklab(52.17% 0.0383 -0.2017)
OKLCHoklch(52.17% 0.205 280.7)
XYZxyz(19.6897, 12.7335, 67.7363)
Luminance0.1273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4EDA #CDDA4E
analogous
#4E87DA #5B4EDA #A14EDA
triadic
#5B4EDA #DA5B4E #4EDA5B
tetradic
#5B4EDA #DA4E87 #CDDA4E #4EDAA1
square
#5B4EDA #DA4E87 #CDDA4E #4EDAA1
split-complementary
#5B4EDA #DAA14E #87DA4E
monochromatic
#291E90 #3729C2 #5B4EDA #8A81E5 #B9B3EF

Accessibility & contrast

On white

5.92
#5B4EDA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#5B4EDA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4EDA
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4EDA#FFFFFF#000000##FFFFFF
##5B4EDA1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DE
Deuteranopia (green-blind)
#005FD7
Tritanopia (blue-blind)
#01718D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5b4eda;
/* rgb */ color: rgb(91, 78, 218);
/* oklch */ color: oklch(52.2% 0.205 280.7);
Tailwind
colors: {
  custom: {
    50: '#9680e6',
    500: '#5b4eda',
    950: '#000000',
  },
}
SCSS
$custom: #5b4eda;
$custom-light: #9680e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4eda",
  "rgb": {
    "r": 91,
    "g": 78,
    "b": 218
  },
  "hsl": {
    "h": 245.571,
    "s": 65.421,
    "l": 58.039
  },
  "oklch": {
    "l": 0.52169,
    "c": 0.20534,
    "h": 280.7
  },
  "luminance": 0.12735
}

Semantic roles & 50–950 ramp

primary
#5B4EDA
secondary
#D9DEA6
accent
#E83FD9
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0F0A16
muted
#7E7C84

Preview Lab

Preview with #5B4EDA

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

Preview Lab → · Contrast checker → · Palette generator →

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