#5B45BF#5B45BF

#5B45BF is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.5% C 0.182 H 285.7°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#5B45BF
RGBrgb(91, 69, 191)
HSLhsl(251, 49%, 51%)
HSVhsv(251, 64%, 75%)
CMYKcmyk(52.4%, 63.9%, 0%, 25.1%)
CIE-LABlab(38.27, 41.24, -61.16)
CIE-LCHlch(38.27, 73.77, 303.99°)
OKLaboklab(48.54% 0.0492 -0.1755)
OKLCHoklch(48.54% 0.182 285.7)
XYZxyz(15.8437, 10.2412, 50.4220)
Luminance0.1024 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B45BF #A9BF45
analogous
#456CBF #5B45BF #9845BF
triadic
#5B45BF #BF5B45 #45BF5B
tetradic
#5B45BF #BF456C #A9BF45 #45BF98
square
#5B45BF #BF456C #A9BF45 #45BF98
split-complementary
#5B45BF #BF9845 #6CBF45
monochromatic
#2F2366 #443394 #5B45BF #8373CF #ABA0DE

Accessibility & contrast

On white

6.89
#5B45BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#5B45BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B45BF
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B45BF#FFFFFF#000000##FFFFFF
##5B45BF1.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC3
Deuteranopia (green-blind)
#0056BD
Tritanopia (blue-blind)
#33637C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5b45bf;
/* rgb */ color: rgb(91, 69, 191);
/* oklch */ color: oklch(48.5% 0.182 285.7);
Tailwind
colors: {
  custom: {
    50: '#927ad3',
    500: '#5b45bf',
    950: '#000000',
  },
}
SCSS
$custom: #5b45bf;
$custom-light: #927ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b45bf",
  "rgb": {
    "r": 91,
    "g": 69,
    "b": 191
  },
  "hsl": {
    "h": 250.82,
    "s": 48.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.48535,
    "c": 0.18224,
    "h": 285.7
  },
  "luminance": 0.10242
}

Semantic roles & 50–950 ramp

primary
#5B45BF
secondary
#C1CB95
accent
#D84FC0
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5B45BF

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

Preview Lab → · Contrast checker → · Palette generator →

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