#5B45E6#5B45E6

#5B45E6 is a mid, highly saturated blue. Relative luminance 0.122; OKLCH L 51.9% C 0.230 H 281.0°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#5B45E6
RGBrgb(91, 69, 230)
HSLhsl(248, 76%, 59%)
HSVhsv(248, 70%, 90%)
CMYKcmyk(60.4%, 70%, 0%, 9.8%)
CIE-LABlab(41.52, 53.00, -78.32)
CIE-LCHlch(41.52, 94.57, 304.08°)
OKLaboklab(51.88% 0.0437 -0.2258)
OKLCHoklch(51.88% 0.23 281)
XYZxyz(20.7209, 12.1921, 76.1090)
Luminance0.1219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B45E6 #D0E645
analogous
#457FE6 #5B45E6 #AB45E6
triadic
#5B45E6 #E65B45 #45E65B
tetradic
#5B45E6 #E6457F #D0E645 #45E6AB
square
#5B45E6 #E6457F #D0E645 #45E6AB
split-complementary
#5B45E6 #E6AB45 #7FE645
monochromatic
#27159C #351CD2 #5B45E6 #8B7BED #BAB1F5

Accessibility & contrast

On white

6.11
#5B45E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#5B45E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B45E6
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B45E6#FFFFFF#000000##FFFFFF
##5B45E61.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068EB
Deuteranopia (green-blind)
#005CE3
Tritanopia (blue-blind)
#007191
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5b45e6;
/* rgb */ color: rgb(91, 69, 230);
/* oklch */ color: oklch(51.9% 0.230 281.0);
Tailwind
colors: {
  custom: {
    50: '#987bef',
    500: '#5b45e6',
    950: '#000000',
  },
}
SCSS
$custom: #5b45e6;
$custom-light: #987bef;
$custom-dark: #000000;
JSON
{
  "hex": "#5b45e6",
  "rgb": {
    "r": 91,
    "g": 69,
    "b": 230
  },
  "hsl": {
    "h": 248.199,
    "s": 76.303,
    "l": 58.627
  },
  "oklch": {
    "l": 0.51875,
    "c": 0.23,
    "h": 281
  },
  "luminance": 0.12194
}

Semantic roles & 50–950 ramp

primary
#5B45E6
secondary
#DBE3A4
accent
#F335D9
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5B45E6

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

Preview Lab → · Contrast checker → · Palette generator →

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