#5841AE#5841AE

#5841AE is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.3% C 0.166 H 287.8°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#5841AE
RGBrgb(88, 65, 174)
HSLhsl(253, 46%, 47%)
HSVhsv(253, 63%, 68%)
CMYKcmyk(49.4%, 62.6%, 0%, 31.8%)
CIE-LABlab(35.81, 37.89, -55.14)
CIE-LCHlch(35.81, 66.90, 304.49°)
OKLaboklab(46.27% 0.0507 -0.1579)
OKLCHoklch(46.27% 0.166 287.8)
XYZxyz(13.5526, 8.9107, 41.0420)
Luminance0.0891 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5841AE #97AE41
analogous
#4160AE #5841AE #8F41AE
triadic
#5841AE #AE5841 #41AE58
tetradic
#5841AE #AE4160 #97AE41 #41AE8F
square
#5841AE #AE4160 #97AE41 #41AE8F
split-complementary
#5841AE #AE8F41 #60AE41
monochromatic
#2B2055 #413081 #5841AE #7A66C6 #A193D7

Accessibility & contrast

On white

7.55
#5841AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5841AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5841AE
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5841AE#FFFFFF#000000##FFFFFF
##5841AE1.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B1
Deuteranopia (green-blind)
#0051AC
Tritanopia (blue-blind)
#3A5B71
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5841ae;
/* rgb */ color: rgb(88, 65, 174);
/* oklch */ color: oklch(46.3% 0.166 287.8);
Tailwind
colors: {
  custom: {
    50: '#8e77c7',
    500: '#5841ae',
    950: '#000000',
  },
}
SCSS
$custom: #5841ae;
$custom-light: #8e77c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5841ae",
  "rgb": {
    "r": 88,
    "g": 65,
    "b": 174
  },
  "hsl": {
    "h": 252.661,
    "s": 45.607,
    "l": 46.863
  },
  "oklch": {
    "l": 0.46269,
    "c": 0.16582,
    "h": 287.8
  },
  "luminance": 0.08911
}

Semantic roles & 50–950 ramp

primary
#5841AE
secondary
#B6C289
accent
#D553BA
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5841AE

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

Preview Lab → · Contrast checker → · Palette generator →

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