#5B4CE2#5B4CE2

#5B4CE2 is a mid, highly saturated blue. Relative luminance 0.129; OKLCH L 52.5% C 0.218 H 280.3°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#5B4CE2
RGBrgb(91, 76, 226)
HSLhsl(246, 72%, 59%)
HSVhsv(246, 66%, 89%)
CMYKcmyk(59.7%, 66.4%, 0%, 11.4%)
CIE-LABlab(42.59, 47.92, -74.30)
CIE-LCHlch(42.59, 88.42, 302.82°)
OKLaboklab(52.54% 0.039 -0.214)
OKLCHoklch(52.54% 0.218 280.3)
XYZxyz(20.6220, 12.8825, 73.3366)
Luminance0.1288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4CE2 #D3E24C
analogous
#4C88E2 #5B4CE2 #A64CE2
triadic
#5B4CE2 #E25B4C #4CE25B
tetradic
#5B4CE2 #E24C88 #D3E24C #4CE2A6
square
#5B4CE2 #E24C88 #D3E24C #4CE2A6
split-complementary
#5B4CE2 #E2A64C #88E24C
monochromatic
#26199B #3322CF #5B4CE2 #8B81EB #BCB5F3

Accessibility & contrast

On white

5.87
#5B4CE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#5B4CE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4CE2
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4CE2#FFFFFF#000000##FFFFFF
##5B4CE21.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE7
Deuteranopia (green-blind)
#005FDF
Tritanopia (blue-blind)
#007391
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5b4ce2;
/* rgb */ color: rgb(91, 76, 226);
/* oklch */ color: oklch(52.5% 0.218 280.3);
Tailwind
colors: {
  custom: {
    50: '#977fec',
    500: '#5b4ce2',
    950: '#000000',
  },
}
SCSS
$custom: #5b4ce2;
$custom-light: #977fec;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4ce2",
  "rgb": {
    "r": 91,
    "g": 76,
    "b": 226
  },
  "hsl": {
    "h": 246,
    "s": 72.115,
    "l": 59.216
  },
  "oklch": {
    "l": 0.52535,
    "c": 0.21757,
    "h": 280.3
  },
  "luminance": 0.12884
}

Semantic roles & 50–950 ramp

primary
#5B4CE2
secondary
#DCE2A8
accent
#EF39DD
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #5B4CE2

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

Preview Lab → · Contrast checker → · Palette generator →

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