#5841BD#5841BD

#5841BD is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.5% C 0.185 H 285.4°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#5841BD
RGBrgb(88, 65, 189)
HSLhsl(251, 49%, 50%)
HSVhsv(251, 66%, 74%)
CMYKcmyk(53.4%, 65.6%, 0%, 25.9%)
CIE-LABlab(36.98, 42.41, -62.10)
CIE-LCHlch(36.98, 75.20, 304.33°)
OKLaboklab(47.49% 0.0493 -0.1783)
OKLCHoklch(47.49% 0.185 285.4)
XYZxyz(15.0974, 9.5286, 49.1779)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5841BD #A6BD41
analogous
#4168BD #5841BD #9641BD
triadic
#5841BD #BD5841 #41BD58
tetradic
#5841BD #BD4168 #A6BD41 #41BD96
square
#5841BD #BD4168 #A6BD41 #41BD96
split-complementary
#5841BD #BD9641 #68BD41
monochromatic
#2E2262 #43318F #5841BD #806ECD #A89CDD

Accessibility & contrast

On white

7.23
#5841BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5841BD
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5841BD#FFFFFF#000000##FFFFFF
##5841BD1.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC1
Deuteranopia (green-blind)
#0053BB
Tritanopia (blue-blind)
#2E6079
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5841bd;
/* rgb */ color: rgb(88, 65, 189);
/* oklch */ color: oklch(47.5% 0.185 285.4);
Tailwind
colors: {
  custom: {
    50: '#9077d2',
    500: '#5841bd',
    950: '#000000',
  },
}
SCSS
$custom: #5841bd;
$custom-light: #9077d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5841bd",
  "rgb": {
    "r": 88,
    "g": 65,
    "b": 189
  },
  "hsl": {
    "h": 251.129,
    "s": 48.819,
    "l": 49.804
  },
  "oklch": {
    "l": 0.47486,
    "c": 0.185,
    "h": 285.4
  },
  "luminance": 0.09529
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5841BD

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

Preview Lab → · Contrast checker → · Palette generator →

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