#5B45BC#5B45BC

#5B45BC is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.3% C 0.178 H 286.1°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#5B45BC
RGBrgb(91, 69, 188)
HSLhsl(251, 47%, 50%)
HSVhsv(251, 63%, 74%)
CMYKcmyk(51.6%, 63.3%, 0%, 26.3%)
CIE-LABlab(38.04, 40.34, -59.78)
CIE-LCHlch(38.04, 72.12, 304.01°)
OKLaboklab(48.29% 0.0495 -0.1714)
OKLCHoklch(48.29% 0.178 286.1)
XYZxyz(15.5169, 10.1105, 48.7011)
Luminance0.1011 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B45BC #A6BC45
analogous
#456BBC #5B45BC #9645BC
triadic
#5B45BC #BC5B45 #45BC5B
tetradic
#5B45BC #BC456B #A6BC45 #45BC96
square
#5B45BC #BC456B #A6BC45 #45BC96
split-complementary
#5B45BC #BC9645 #6BBC45
monochromatic
#2F2463 #453490 #5B45BC #8372CC #AA9FDC

Accessibility & contrast

On white

6.95
#5B45BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#5B45BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B45BC
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B45BC#FFFFFF#000000##FFFFFF
##5B45BC1.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC0
Deuteranopia (green-blind)
#0056BA
Tritanopia (blue-blind)
#36627A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5b45bc;
/* rgb */ color: rgb(91, 69, 188);
/* oklch */ color: oklch(48.3% 0.178 286.1);
Tailwind
colors: {
  custom: {
    50: '#927ad1',
    500: '#5b45bc',
    950: '#000000',
  },
}
SCSS
$custom: #5b45bc;
$custom-light: #927ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b45bc",
  "rgb": {
    "r": 91,
    "g": 69,
    "b": 188
  },
  "hsl": {
    "h": 251.092,
    "s": 47.036,
    "l": 50.392
  },
  "oklch": {
    "l": 0.48294,
    "c": 0.1784,
    "h": 286.1
  },
  "luminance": 0.10111
}

Semantic roles & 50–950 ramp

primary
#5B45BC
secondary
#BFC994
accent
#D751BE
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5B45BC

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

Preview Lab → · Contrast checker → · Palette generator →

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