#5B45BE#5B45BE

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

Color values

HEX#5B45BE
RGBrgb(91, 69, 190)
HSLhsl(251, 48%, 51%)
HSVhsv(251, 64%, 75%)
CMYKcmyk(52.1%, 63.7%, 0%, 25.5%)
CIE-LABlab(38.19, 40.94, -60.70)
CIE-LCHlch(38.19, 73.22, 304.00°)
OKLaboklab(48.46% 0.0493 -0.1741)
OKLCHoklch(48.46% 0.181 285.8)
XYZxyz(15.7340, 10.1973, 49.8444)
Luminance0.1020 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B45BE #A8BE45
analogous
#456BBE #5B45BE #9745BE
triadic
#5B45BE #BE5B45 #45BE5B
tetradic
#5B45BE #BE456B #A8BE45 #45BE97
square
#5B45BE #BE456B #A8BE45 #45BE97
split-complementary
#5B45BE #BE9745 #6BBE45
monochromatic
#2F2365 #453393 #5B45BE #8372CE #ABA0DE

Accessibility & contrast

On white

6.91
#5B45BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#5B45BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B45BE
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B45BE#FFFFFF#000000##FFFFFF
##5B45BE1.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC2
Deuteranopia (green-blind)
#0056BC
Tritanopia (blue-blind)
#34627B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5b45be;
/* rgb */ color: rgb(91, 69, 190);
/* oklch */ color: oklch(48.5% 0.181 285.8);
Tailwind
colors: {
  custom: {
    50: '#927ad2',
    500: '#5b45be',
    950: '#000000',
  },
}
SCSS
$custom: #5b45be;
$custom-light: #927ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b45be",
  "rgb": {
    "r": 91,
    "g": 69,
    "b": 190
  },
  "hsl": {
    "h": 250.909,
    "s": 48.207,
    "l": 50.784
  },
  "oklch": {
    "l": 0.48455,
    "c": 0.18096,
    "h": 285.8
  },
  "luminance": 0.10198
}

Semantic roles & 50–950 ramp

primary
#5B45BE
secondary
#C0CA95
accent
#D850BF
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5B45BE

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

Preview Lab → · Contrast checker → · Palette generator →

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