#5B43BB#5B43BB

#5B43BB is a mid, vivid violet. Relative luminance 0.098; OKLCH L 47.9% C 0.180 H 286.7°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#5B43BB
RGBrgb(91, 67, 187)
HSLhsl(252, 47%, 50%)
HSVhsv(252, 64%, 73%)
CMYKcmyk(51.3%, 64.2%, 0%, 26.7%)
CIE-LABlab(37.53, 41.20, -60.03)
CIE-LCHlch(37.53, 72.81, 304.46°)
OKLaboklab(47.9% 0.0516 -0.1721)
OKLCHoklch(47.9% 0.18 286.7)
XYZxyz(15.2885, 9.8256, 48.0950)
Luminance0.0983 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B43BB #A3BB43
analogous
#4367BB #5B43BB #9743BB
triadic
#5B43BB #BB5B43 #43BB5B
tetradic
#5B43BB #BB4367 #A3BB43 #43BB97
square
#5B43BB #BB4367 #A3BB43 #43BB97
split-complementary
#5B43BB #BB9743 #67BB43
monochromatic
#2F2361 #45338E #5B43BB #8270CC #A99DDC

Accessibility & contrast

On white

7.08
#5B43BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#5B43BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B43BB
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B43BB#FFFFFF#000000##FFFFFF
##5B43BB1.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBF
Deuteranopia (green-blind)
#0055B9
Tritanopia (blue-blind)
#376079
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5b43bb;
/* rgb */ color: rgb(91, 67, 187);
/* oklch */ color: oklch(47.9% 0.180 286.7);
Tailwind
colors: {
  custom: {
    50: '#9278d0',
    500: '#5b43bb',
    950: '#000000',
  },
}
SCSS
$custom: #5b43bb;
$custom-light: #9278d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b43bb",
  "rgb": {
    "r": 91,
    "g": 67,
    "b": 187
  },
  "hsl": {
    "h": 252,
    "s": 47.244,
    "l": 49.804
  },
  "oklch": {
    "l": 0.47898,
    "c": 0.1797,
    "h": 286.7
  },
  "luminance": 0.09826
}

Semantic roles & 50–950 ramp

primary
#5B43BB
secondary
#BDC892
accent
#D751BC
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5B43BB

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

Preview Lab → · Contrast checker → · Palette generator →

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