#5B4CE5#5B4CE5

#5B4CE5 is a mid, highly saturated blue. Relative luminance 0.131; OKLCH L 52.8% C 0.221 H 280.1°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#5B4CE5
RGBrgb(91, 76, 229)
HSLhsl(246, 75%, 60%)
HSVhsv(246, 67%, 90%)
CMYKcmyk(60.3%, 66.8%, 0%, 10.2%)
CIE-LABlab(42.84, 48.84, -75.60)
CIE-LCHlch(42.84, 90.00, 302.87°)
OKLaboklab(52.79% 0.0386 -0.2178)
OKLCHoklch(52.79% 0.221 280.1)
XYZxyz(21.0372, 13.0486, 75.5236)
Luminance0.1305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4CE5 #D6E54C
analogous
#4C8AE5 #5B4CE5 #A74CE5
triadic
#5B4CE5 #E55B4C #4CE55B
tetradic
#5B4CE5 #E54C8A #D6E54C #4CE5A7
square
#5B4CE5 #E54C8A #D6E54C #4CE5A7
split-complementary
#5B4CE5 #E5A74C #8AE54C
monochromatic
#25179F #311FD5 #5B4CE5 #8C81ED #BDB7F5

Accessibility & contrast

On white

5.82
#5B4CE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#5B4CE5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4CE5
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4CE5#FFFFFF#000000##FFFFFF
##5B4CE51.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BEA
Deuteranopia (green-blind)
#005FE2
Tritanopia (blue-blind)
#007492
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5b4ce5;
/* rgb */ color: rgb(91, 76, 229);
/* oklch */ color: oklch(52.8% 0.221 280.1);
Tailwind
colors: {
  custom: {
    50: '#987fee',
    500: '#5b4ce5',
    950: '#000000',
  },
}
SCSS
$custom: #5b4ce5;
$custom-light: #987fee;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4ce5",
  "rgb": {
    "r": 91,
    "g": 76,
    "b": 229
  },
  "hsl": {
    "h": 245.882,
    "s": 74.634,
    "l": 59.804
  },
  "oklch": {
    "l": 0.52793,
    "c": 0.22123,
    "h": 280.1
  },
  "luminance": 0.1305
}

Semantic roles & 50–950 ramp

primary
#5B4CE5
secondary
#DEE4A9
accent
#F137DF
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5B4CE5

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

Preview Lab → · Contrast checker → · Palette generator →

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