#5841BB#5841BB

#5841BB is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.3% C 0.182 H 285.7°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#5841BB
RGBrgb(88, 65, 187)
HSLhsl(251, 48%, 49%)
HSVhsv(251, 65%, 73%)
CMYKcmyk(52.9%, 65.2%, 0%, 26.7%)
CIE-LABlab(36.82, 41.81, -61.19)
CIE-LCHlch(36.82, 74.11, 304.34°)
OKLaboklab(47.32% 0.0495 -0.1756)
OKLCHoklch(47.32% 0.182 285.7)
XYZxyz(14.8818, 9.4424, 48.0425)
Luminance0.0944 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5841BB #A4BB41
analogous
#4167BB #5841BB #9541BB
triadic
#5841BB #BB5841 #41BB58
tetradic
#5841BB #BB4167 #A4BB41 #41BB95
square
#5841BB #BB4167 #A4BB41 #41BB95
split-complementary
#5841BB #BB9541 #67BB41
monochromatic
#2D2160 #43318E #5841BB #7F6DCC #A79ADC

Accessibility & contrast

On white

7.27
#5841BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5841BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5841BB
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5841BB#FFFFFF#000000##FFFFFF
##5841BB1.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABF
Deuteranopia (green-blind)
#0053B9
Tritanopia (blue-blind)
#305F78
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5841bb;
/* rgb */ color: rgb(88, 65, 187);
/* oklch */ color: oklch(47.3% 0.182 285.7);
Tailwind
colors: {
  custom: {
    50: '#9077d0',
    500: '#5841bb',
    950: '#000000',
  },
}
SCSS
$custom: #5841bb;
$custom-light: #9077d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5841bb",
  "rgb": {
    "r": 88,
    "g": 65,
    "b": 187
  },
  "hsl": {
    "h": 251.311,
    "s": 48.413,
    "l": 49.412
  },
  "oklch": {
    "l": 0.4732,
    "c": 0.18247,
    "h": 285.7
  },
  "luminance": 0.09443
}

Semantic roles & 50–950 ramp

primary
#5841BB
secondary
#BDC890
accent
#D850BE
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #5841BB

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

Preview Lab → · Contrast checker → · Palette generator →

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