#5841BF#5841BF

#5841BF is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.7% C 0.188 H 285.2°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#5841BF
RGBrgb(88, 65, 191)
HSLhsl(251, 50%, 50%)
HSVhsv(251, 66%, 75%)
CMYKcmyk(53.9%, 66%, 0%, 25.1%)
CIE-LABlab(37.14, 43.02, -63.01)
CIE-LCHlch(37.14, 76.29, 304.32°)
OKLaboklab(47.65% 0.049 -0.181)
OKLCHoklch(47.65% 0.188 285.2)
XYZxyz(15.3159, 9.6160, 50.3292)
Luminance0.0962 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5841BF #A8BF41
analogous
#4169BF #5841BF #9741BF
triadic
#5841BF #BF5841 #41BF58
tetradic
#5841BF #BF4169 #A8BF41 #41BF97
square
#5841BF #BF4169 #A8BF41 #41BF97
split-complementary
#5841BF #BF9741 #69BF41
monochromatic
#2E2264 #433192 #5841BF #806FCE #A89DDE

Accessibility & contrast

On white

7.18
#5841BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5841BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5841BF
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5841BF#FFFFFF#000000##FFFFFF
##5841BF1.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)
#005BC3
Deuteranopia (green-blind)
#0054BD
Tritanopia (blue-blind)
#2C617A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5841bf;
/* rgb */ color: rgb(88, 65, 191);
/* oklch */ color: oklch(47.7% 0.188 285.2);
Tailwind
colors: {
  custom: {
    50: '#9177d3',
    500: '#5841bf',
    950: '#000000',
  },
}
SCSS
$custom: #5841bf;
$custom-light: #9177d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5841bf",
  "rgb": {
    "r": 88,
    "g": 65,
    "b": 191
  },
  "hsl": {
    "h": 250.952,
    "s": 49.606,
    "l": 50.196
  },
  "oklch": {
    "l": 0.47653,
    "c": 0.18751,
    "h": 285.2
  },
  "luminance": 0.09617
}

Semantic roles & 50–950 ramp

primary
#5841BF
secondary
#C0CA92
accent
#D94FC0
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5841BF

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

Preview Lab → · Contrast checker → · Palette generator →

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