#5B45E8#5B45E8

#5B45E8 is a mid, highly saturated blue. Relative luminance 0.123; OKLCH L 52.1% C 0.232 H 280.8°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#5B45E8
RGBrgb(91, 69, 232)
HSLhsl(248, 78%, 59%)
HSVhsv(248, 70%, 91%)
CMYKcmyk(60.8%, 70.3%, 0%, 9%)
CIE-LABlab(41.70, 53.59, -79.17)
CIE-LCHlch(41.70, 95.60, 304.10°)
OKLaboklab(52.05% 0.0434 -0.2283)
OKLCHoklch(52.05% 0.232 280.8)
XYZxyz(21.0034, 12.3050, 77.5966)
Luminance0.1231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B45E8 #D2E845
analogous
#4581E8 #5B45E8 #AD45E8
triadic
#5B45E8 #E85B45 #45E85B
tetradic
#5B45E8 #E84581 #D2E845 #45E8AD
square
#5B45E8 #E84581 #D2E845 #45E8AD
split-complementary
#5B45E8 #E8AD45 #81E845
monochromatic
#26149F #341AD5 #5B45E8 #8B7BEF #BBB2F5

Accessibility & contrast

On white

6.07
#5B45E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#5B45E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B45E8
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B45E8#FFFFFF#000000##FFFFFF
##5B45E81.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068ED
Deuteranopia (green-blind)
#005CE5
Tritanopia (blue-blind)
#007192
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5b45e8;
/* rgb */ color: rgb(91, 69, 232);
/* oklch */ color: oklch(52.1% 0.232 280.8);
Tailwind
colors: {
  custom: {
    50: '#997bf1',
    500: '#5b45e8',
    950: '#000000',
  },
}
SCSS
$custom: #5b45e8;
$custom-light: #997bf1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b45e8",
  "rgb": {
    "r": 91,
    "g": 69,
    "b": 232
  },
  "hsl": {
    "h": 248.098,
    "s": 77.99,
    "l": 59.02
  },
  "oklch": {
    "l": 0.52055,
    "c": 0.23235,
    "h": 280.8
  },
  "luminance": 0.12307
}

Semantic roles & 50–950 ramp

primary
#5B45E8
secondary
#DCE4A4
accent
#F433DA
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5B45E8

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

Preview Lab → · Contrast checker → · Palette generator →

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