#5841BE#5841BE

#5841BE is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.6% C 0.186 H 285.3°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#5841BE
RGBrgb(88, 65, 190)
HSLhsl(251, 49%, 50%)
HSVhsv(251, 66%, 75%)
CMYKcmyk(53.7%, 65.8%, 0%, 25.5%)
CIE-LABlab(37.06, 42.71, -62.56)
CIE-LCHlch(37.06, 75.75, 304.33°)
OKLaboklab(47.57% 0.0492 -0.1797)
OKLCHoklch(47.57% 0.186 285.3)
XYZxyz(15.2063, 9.5722, 49.7516)
Luminance0.0957 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5841BE #A7BE41
analogous
#4168BE #5841BE #9741BE
triadic
#5841BE #BE5841 #41BE58
tetradic
#5841BE #BE4168 #A7BE41 #41BE97
square
#5841BE #BE4168 #A7BE41 #41BE97
split-complementary
#5841BE #BE9741 #68BE41
monochromatic
#2E2263 #433190 #5841BE #806FCE #A89CDD

Accessibility & contrast

On white

7.21
#5841BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5841BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5841BE
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5841BE#FFFFFF#000000##FFFFFF
##5841BE1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC2
Deuteranopia (green-blind)
#0053BC
Tritanopia (blue-blind)
#2D607A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5841be;
/* rgb */ color: rgb(88, 65, 190);
/* oklch */ color: oklch(47.6% 0.186 285.3);
Tailwind
colors: {
  custom: {
    50: '#9077d3',
    500: '#5841be',
    950: '#000000',
  },
}
SCSS
$custom: #5841be;
$custom-light: #9077d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5841be",
  "rgb": {
    "r": 88,
    "g": 65,
    "b": 190
  },
  "hsl": {
    "h": 251.04,
    "s": 49.02,
    "l": 50
  },
  "oklch": {
    "l": 0.47569,
    "c": 0.18626,
    "h": 285.3
  },
  "luminance": 0.09573
}

Semantic roles & 50–950 ramp

primary
#5841BE
secondary
#BFC991
accent
#D94FBF
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5841BE

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

Preview Lab → · Contrast checker → · Palette generator →

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