#5841B2#5841B2

#5841B2 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 46.6% C 0.171 H 287.1°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#5841B2
RGBrgb(88, 65, 178)
HSLhsl(252, 47%, 48%)
HSVhsv(252, 63%, 70%)
CMYKcmyk(50.6%, 63.5%, 0%, 30.2%)
CIE-LABlab(36.12, 39.09, -57.02)
CIE-LCHlch(36.12, 69.13, 304.43°)
OKLaboklab(46.59% 0.0504 -0.1634)
OKLCHoklch(46.59% 0.171 287.1)
XYZxyz(13.9483, 9.0690, 43.1264)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5841B2 #9BB241
analogous
#4163B2 #5841B2 #9041B2
triadic
#5841B2 #B25841 #41B258
tetradic
#5841B2 #B24163 #9BB241 #41B290
square
#5841B2 #B24163 #9BB241 #41B290
split-complementary
#5841B2 #B29041 #63B241
monochromatic
#2C2058 #423185 #5841B2 #7C68C8 #A395D8

Accessibility & contrast

On white

7.46
#5841B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#5841B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5841B2
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5841B2#FFFFFF#000000##FFFFFF
##5841B21.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B6
Deuteranopia (green-blind)
#0052B0
Tritanopia (blue-blind)
#385C73
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5841b2;
/* rgb */ color: rgb(88, 65, 178);
/* oklch */ color: oklch(46.6% 0.171 287.1);
Tailwind
colors: {
  custom: {
    50: '#8f77ca',
    500: '#5841b2',
    950: '#000000',
  },
}
SCSS
$custom: #5841b2;
$custom-light: #8f77ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5841b2",
  "rgb": {
    "r": 88,
    "g": 65,
    "b": 178
  },
  "hsl": {
    "h": 252.212,
    "s": 46.502,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46587,
    "c": 0.17099,
    "h": 287.1
  },
  "luminance": 0.0907
}

Semantic roles & 50–950 ramp

primary
#5841B2
secondary
#B8C48B
accent
#D652BB
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5841B2

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

Preview Lab → · Contrast checker → · Palette generator →

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