#5B4DE6#5B4DE6

#5B4DE6 is a mid, highly saturated blue. Relative luminance 0.132; OKLCH L 53.0% C 0.221 H 279.8°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#5B4DE6
RGBrgb(91, 77, 230)
HSLhsl(245, 75%, 60%)
HSVhsv(245, 67%, 90%)
CMYKcmyk(60.4%, 66.5%, 0%, 9.8%)
CIE-LABlab(43.13, 48.59, -75.69)
CIE-LCHlch(43.13, 89.94, 302.70°)
OKLaboklab(53.03% 0.0377 -0.2181)
OKLCHoklch(53.03% 0.221 279.8)
XYZxyz(21.2467, 13.2435, 76.2842)
Luminance0.1325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4DE6 #D8E64D
analogous
#4D8CE6 #5B4DE6 #A74DE6
triadic
#5B4DE6 #E65B4D #4DE65B
tetradic
#5B4DE6 #E64D8C #D8E64D #4DE6A7
square
#5B4DE6 #E64D8C #D8E64D #4DE6A7
split-complementary
#5B4DE6 #E6A74D #8CE64D
monochromatic
#2317A2 #2F1ED8 #5B4DE6 #8C83EE #BEB8F5

Accessibility & contrast

On white

5.76
#5B4DE6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#5B4DE6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4DE6
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4DE6#FFFFFF#000000##FFFFFF
##5B4DE61.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CEB
Deuteranopia (green-blind)
#0060E3
Tritanopia (blue-blind)
#007593
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5b4de6;
/* rgb */ color: rgb(91, 77, 230);
/* oklch */ color: oklch(53.0% 0.221 279.8);
Tailwind
colors: {
  custom: {
    50: '#9880ef',
    500: '#5b4de6',
    950: '#000000',
  },
}
SCSS
$custom: #5b4de6;
$custom-light: #9880ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4de6",
  "rgb": {
    "r": 91,
    "g": 77,
    "b": 230
  },
  "hsl": {
    "h": 245.49,
    "s": 75.369,
    "l": 60.196
  },
  "oklch": {
    "l": 0.53029,
    "c": 0.22133,
    "h": 279.8
  },
  "luminance": 0.13245
}

Semantic roles & 50–950 ramp

primary
#5B4DE6
secondary
#DFE5AA
accent
#D80EC5
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5B4DE6

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

Preview Lab → · Contrast checker → · Palette generator →

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