#5B45BB#5B45BB

#5B45BB is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.2% C 0.177 H 286.3°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#5B45BB
RGBrgb(91, 69, 187)
HSLhsl(251, 46%, 50%)
HSVhsv(251, 63%, 73%)
CMYKcmyk(51.3%, 63.1%, 0%, 26.7%)
CIE-LABlab(37.96, 40.04, -59.32)
CIE-LCHlch(37.96, 71.57, 304.02°)
OKLaboklab(48.21% 0.0496 -0.17)
OKLCHoklch(48.21% 0.177 286.3)
XYZxyz(15.4095, 10.0675, 48.1353)
Luminance0.1007 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B45BB #A5BB45
analogous
#456ABB #5B45BB #9645BB
triadic
#5B45BB #BB5B45 #45BB5B
tetradic
#5B45BB #BB456A #A5BB45 #45BB96
square
#5B45BB #BB456A #A5BB45 #45BB96
split-complementary
#5B45BB #BB9645 #6ABB45
monochromatic
#2F2462 #45348F #5B45BB #8372CB #AA9FDC

Accessibility & contrast

On white

6.97
#5B45BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#5B45BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B45BB
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B45BB#FFFFFF#000000##FFFFFF
##5B45BB1.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBF
Deuteranopia (green-blind)
#0056B9
Tritanopia (blue-blind)
#376179
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5b45bb;
/* rgb */ color: rgb(91, 69, 187);
/* oklch */ color: oklch(48.2% 0.177 286.3);
Tailwind
colors: {
  custom: {
    50: '#917ad0',
    500: '#5b45bb',
    950: '#000000',
  },
}
SCSS
$custom: #5b45bb;
$custom-light: #917ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b45bb",
  "rgb": {
    "r": 91,
    "g": 69,
    "b": 187
  },
  "hsl": {
    "h": 251.186,
    "s": 46.457,
    "l": 50.196
  },
  "oklch": {
    "l": 0.48214,
    "c": 0.17712,
    "h": 286.3
  },
  "luminance": 0.10068
}

Semantic roles & 50–950 ramp

primary
#5B45BB
secondary
#BEC894
accent
#D652BD
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5B45BB

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

Preview Lab → · Contrast checker → · Palette generator →

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