#5B45B0#5B45B0

#5B45B0 is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.4% C 0.163 H 288.0°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#5B45B0
RGBrgb(91, 69, 176)
HSLhsl(252, 44%, 48%)
HSVhsv(252, 61%, 69%)
CMYKcmyk(48.3%, 60.8%, 0%, 31%)
CIE-LABlab(37.14, 36.73, -54.16)
CIE-LCHlch(37.14, 65.44, 304.14°)
OKLaboklab(47.36% 0.0503 -0.1549)
OKLCHoklch(47.36% 0.163 288)
XYZxyz(14.2767, 9.6144, 42.1694)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B45B0 #9AB045
analogous
#4565B0 #5B45B0 #9045B0
triadic
#5B45B0 #B05B45 #45B05B
tetradic
#5B45B0 #B04565 #9AB045 #45B090
square
#5B45B0 #B04565 #9AB045 #45B090
split-complementary
#5B45B0 #B09045 #65B045
monochromatic
#2E2358 #443484 #5B45B0 #7F6DC6 #A599D7

Accessibility & contrast

On white

7.18
#5B45B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5B45B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B45B0
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B45B0#FFFFFF#000000##FFFFFF
##5B45B01.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB3
Deuteranopia (green-blind)
#0055AE
Tritanopia (blue-blind)
#3F5E74
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5b45b0;
/* rgb */ color: rgb(91, 69, 176);
/* oklch */ color: oklch(47.4% 0.163 288.0);
Tailwind
colors: {
  custom: {
    50: '#907ac8',
    500: '#5b45b0',
    950: '#000000',
  },
}
SCSS
$custom: #5b45b0;
$custom-light: #907ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b45b0",
  "rgb": {
    "r": 91,
    "g": 69,
    "b": 176
  },
  "hsl": {
    "h": 252.336,
    "s": 43.673,
    "l": 48.039
  },
  "oklch": {
    "l": 0.47355,
    "c": 0.16285,
    "h": 288
  },
  "luminance": 0.09615
}

Semantic roles & 50–950 ramp

primary
#5B45B0
secondary
#B8C38E
accent
#D354B9
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5B45B0

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

Preview Lab → · Contrast checker → · Palette generator →

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