#5843BB#5843BB

#5843BB is a mid, vivid violet. Relative luminance 0.097; OKLCH L 47.6% C 0.180 H 285.3°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#5843BB
RGBrgb(88, 67, 187)
HSLhsl(251, 47%, 50%)
HSVhsv(251, 64%, 73%)
CMYKcmyk(52.9%, 64.2%, 0%, 26.7%)
CIE-LABlab(37.25, 40.65, -60.48)
CIE-LCHlch(37.25, 72.87, 303.90°)
OKLaboklab(47.63% 0.0476 -0.1736)
OKLCHoklch(47.63% 0.18 285.3)
XYZxyz(14.9986, 9.6761, 48.0814)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5843BB #A6BB43
analogous
#436ABB #5843BB #9443BB
triadic
#5843BB #BB5843 #43BB58
tetradic
#5843BB #BB436A #A6BB43 #43BB94
square
#5843BB #BB436A #A6BB43 #43BB94
split-complementary
#5843BB #BB9443 #6ABB43
monochromatic
#2E2361 #43338E #5843BB #8070CC #A89DDC

Accessibility & contrast

On white

7.15
#5843BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#5843BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5843BB
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5843BB#FFFFFF#000000##FFFFFF
##5843BB1.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5843bb;
/* rgb */ color: rgb(88, 67, 187);
/* oklch */ color: oklch(47.6% 0.180 285.3);
Tailwind
colors: {
  custom: {
    50: '#9078d0',
    500: '#5843bb',
    950: '#000000',
  },
}
SCSS
$custom: #5843bb;
$custom-light: #9078d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5843bb",
  "rgb": {
    "r": 88,
    "g": 67,
    "b": 187
  },
  "hsl": {
    "h": 250.5,
    "s": 47.244,
    "l": 49.804
  },
  "oklch": {
    "l": 0.47633,
    "c": 0.17996,
    "h": 285.3
  },
  "luminance": 0.09677
}

Semantic roles & 50–950 ramp

primary
#5843BB
secondary
#BFC892
accent
#D751BF
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #5843BB

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

Preview Lab → · Contrast checker → · Palette generator →

#5843BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva