#5B45E0#5B45E0

#5B45E0 is a mid, highly saturated blue. Relative luminance 0.119; OKLCH L 51.3% C 0.223 H 281.6°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#5B45E0
RGBrgb(91, 69, 224)
HSLhsl(249, 71%, 57%)
HSVhsv(249, 69%, 88%)
CMYKcmyk(59.4%, 69.2%, 0%, 12.2%)
CIE-LABlab(40.99, 51.20, -75.77)
CIE-LCHlch(40.99, 91.45, 304.05°)
OKLaboklab(51.34% 0.0448 -0.2183)
OKLCHoklch(51.34% 0.223 281.6)
XYZxyz(19.8928, 11.8608, 71.7477)
Luminance0.1186 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B45E0 #CAE045
analogous
#457DE0 #5B45E0 #A845E0
triadic
#5B45E0 #E05B45 #45E05B
tetradic
#5B45E0 #E0457D #CAE045 #45E0A8
square
#5B45E0 #E0457D #CAE045 #45E0A8
split-complementary
#5B45E0 #E0A845 #7DE045
monochromatic
#2A1892 #3921C7 #5B45E0 #8979E9 #B8AEF1

Accessibility & contrast

On white

6.23
#5B45E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#5B45E0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B45E0
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B45E0#FFFFFF#000000##FFFFFF
##5B45E01.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E5
Deuteranopia (green-blind)
#005BDD
Tritanopia (blue-blind)
#006E8D
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5b45e0;
/* rgb */ color: rgb(91, 69, 224);
/* oklch */ color: oklch(51.3% 0.223 281.6);
Tailwind
colors: {
  custom: {
    50: '#977beb',
    500: '#5b45e0',
    950: '#000000',
  },
}
SCSS
$custom: #5b45e0;
$custom-light: #977beb;
$custom-dark: #000000;
JSON
{
  "hex": "#5b45e0",
  "rgb": {
    "r": 91,
    "g": 69,
    "b": 224
  },
  "hsl": {
    "h": 248.516,
    "s": 71.429,
    "l": 57.451
  },
  "oklch": {
    "l": 0.51339,
    "c": 0.22288,
    "h": 281.6
  },
  "luminance": 0.11862
}

Semantic roles & 50–950 ramp

primary
#5B45E0
secondary
#D7E0A1
accent
#EE3AD5
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5B45E0

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

Preview Lab → · Contrast checker → · Palette generator →

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