#5841BA#5841BA

#5841BA is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.2% C 0.181 H 285.9°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#5841BA
RGBrgb(88, 65, 186)
HSLhsl(251, 48%, 49%)
HSVhsv(251, 65%, 73%)
CMYKcmyk(52.7%, 65.1%, 0%, 27.1%)
CIE-LABlab(36.74, 41.50, -60.73)
CIE-LCHlch(36.74, 73.56, 304.35°)
OKLaboklab(47.24% 0.0496 -0.1743)
OKLCHoklch(47.24% 0.181 285.9)
XYZxyz(14.7751, 9.3997, 47.4806)
Luminance0.0940 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5841BA #A3BA41
analogous
#4167BA #5841BA #9541BA
triadic
#5841BA #BA5841 #41BA58
tetradic
#5841BA #BA4167 #A3BA41 #41BA95
square
#5841BA #BA4167 #A3BA41 #41BA95
split-complementary
#5841BA #BA9541 #67BA41
monochromatic
#2D215F #43318D #5841BA #7F6CCC #A69ADC

Accessibility & contrast

On white

7.29
#5841BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5841BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5841BA
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5841BA#FFFFFF#000000##FFFFFF
##5841BA1.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABE
Deuteranopia (green-blind)
#0053B8
Tritanopia (blue-blind)
#315F78
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5841ba;
/* rgb */ color: rgb(88, 65, 186);
/* oklch */ color: oklch(47.2% 0.181 285.9);
Tailwind
colors: {
  custom: {
    50: '#9077d0',
    500: '#5841ba',
    950: '#000000',
  },
}
SCSS
$custom: #5841ba;
$custom-light: #9077d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5841ba",
  "rgb": {
    "r": 88,
    "g": 65,
    "b": 186
  },
  "hsl": {
    "h": 251.405,
    "s": 48.207,
    "l": 49.216
  },
  "oklch": {
    "l": 0.47237,
    "c": 0.18122,
    "h": 285.9
  },
  "luminance": 0.094
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5841BA

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

Preview Lab → · Contrast checker → · Palette generator →

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