#5B46E1#5B46E1

#5B46E1 is a mid, highly saturated blue. Relative luminance 0.120; OKLCH L 51.6% C 0.223 H 281.3°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#5B46E1
RGBrgb(91, 70, 225)
HSLhsl(248, 72%, 58%)
HSVhsv(248, 69%, 88%)
CMYKcmyk(59.6%, 68.9%, 0%, 11.8%)
CIE-LABlab(41.28, 50.95, -75.88)
CIE-LCHlch(41.28, 91.40, 303.88°)
OKLaboklab(51.57% 0.0438 -0.2186)
OKLCHoklch(51.57% 0.223 281.3)
XYZxyz(20.0909, 12.0393, 72.4847)
Luminance0.1204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B46E1 #CCE146
analogous
#467EE1 #5B46E1 #A846E1
triadic
#5B46E1 #E15B46 #46E15B
tetradic
#5B46E1 #E1467E #CCE146 #46E1A8
square
#5B46E1 #E1467E #CCE146 #46E1A8
split-complementary
#5B46E1 #E1A846 #7EE146
monochromatic
#291895 #3721C9 #5B46E1 #8A7BEA #B8AFF2

Accessibility & contrast

On white

6.16
#5B46E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#5B46E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B46E1
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B46E1#FFFFFF#000000##FFFFFF
##5B46E11.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E6
Deuteranopia (green-blind)
#005CDE
Tritanopia (blue-blind)
#006F8E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5b46e1;
/* rgb */ color: rgb(91, 70, 225);
/* oklch */ color: oklch(51.6% 0.223 281.3);
Tailwind
colors: {
  custom: {
    50: '#977bec',
    500: '#5b46e1',
    950: '#000000',
  },
}
SCSS
$custom: #5b46e1;
$custom-light: #977bec;
$custom-dark: #000000;
JSON
{
  "hex": "#5b46e1",
  "rgb": {
    "r": 91,
    "g": 70,
    "b": 225
  },
  "hsl": {
    "h": 248.129,
    "s": 72.093,
    "l": 57.843
  },
  "oklch": {
    "l": 0.51569,
    "c": 0.22299,
    "h": 281.3
  },
  "luminance": 0.12041
}

Semantic roles & 50–950 ramp

primary
#5B46E1
secondary
#D8E0A2
accent
#EF39D6
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5B46E1

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

Preview Lab → · Contrast checker → · Palette generator →

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