#5843BF#5843BF

#5843BF is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.0% C 0.185 H 284.8°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#5843BF
RGBrgb(88, 67, 191)
HSLhsl(250, 49%, 51%)
HSVhsv(250, 65%, 75%)
CMYKcmyk(53.9%, 64.9%, 0%, 25.1%)
CIE-LABlab(37.57, 41.86, -62.31)
CIE-LCHlch(37.57, 75.07, 303.89°)
OKLaboklab(47.96% 0.0471 -0.1789)
OKLCHoklch(47.96% 0.185 284.8)
XYZxyz(15.4328, 9.8497, 50.3681)
Luminance0.0985 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5843BF #AABF43
analogous
#436CBF #5843BF #9643BF
triadic
#5843BF #BF5843 #43BF58
tetradic
#5843BF #BF436C #AABF43 #43BF96
square
#5843BF #BF436C #AABF43 #43BF96
split-complementary
#5843BF #BF9643 #6CBF43
monochromatic
#2E2265 #423293 #5843BF #8171CF #A99EDE

Accessibility & contrast

On white

7.07
#5843BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#5843BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5843BF
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5843BF#FFFFFF#000000##FFFFFF
##5843BF1.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC3
Deuteranopia (green-blind)
#0055BD
Tritanopia (blue-blind)
#2C627B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5843bf;
/* rgb */ color: rgb(88, 67, 191);
/* oklch */ color: oklch(48.0% 0.185 284.8);
Tailwind
colors: {
  custom: {
    50: '#9178d3',
    500: '#5843bf',
    950: '#000000',
  },
}
SCSS
$custom: #5843bf;
$custom-light: #9178d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5843bf",
  "rgb": {
    "r": 88,
    "g": 67,
    "b": 191
  },
  "hsl": {
    "h": 250.161,
    "s": 49.206,
    "l": 50.588
  },
  "oklch": {
    "l": 0.47962,
    "c": 0.18505,
    "h": 284.8
  },
  "luminance": 0.09851
}

Semantic roles & 50–950 ramp

primary
#5843BF
secondary
#C1CA93
accent
#D94FC1
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5843BF

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

Preview Lab → · Contrast checker → · Palette generator →

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