#5841C0#5841C0

#5841C0 is a mid, vivid violet. Relative luminance 0.097; OKLCH L 47.7% C 0.189 H 285.0°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#5841C0
RGBrgb(88, 65, 192)
HSLhsl(251, 50%, 50%)
HSVhsv(251, 66%, 75%)
CMYKcmyk(54.2%, 66.1%, 0%, 24.7%)
CIE-LABlab(37.23, 43.32, -63.46)
CIE-LCHlch(37.23, 76.84, 304.32°)
OKLaboklab(47.74% 0.0489 -0.1823)
OKLCHoklch(47.74% 0.189 285)
XYZxyz(15.4264, 9.6602, 50.9107)
Luminance0.0966 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5841C0 #A9C041
analogous
#4169C0 #5841C0 #9741C0
triadic
#5841C0 #C05841 #41C058
tetradic
#5841C0 #C04169 #A9C041 #41C097
square
#5841C0 #C04169 #A9C041 #41C097
split-complementary
#5841C0 #C09741 #69C041
monochromatic
#2E2265 #433193 #5841C0 #806FCF #A99DDE

Accessibility & contrast

On white

7.16
#5841C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#5841C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5841C0
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5841C0#FFFFFF#000000##FFFFFF
##5841C01.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC4
Deuteranopia (green-blind)
#0054BD
Tritanopia (blue-blind)
#2B617B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5841c0;
/* rgb */ color: rgb(88, 65, 192);
/* oklch */ color: oklch(47.7% 0.189 285.0);
Tailwind
colors: {
  custom: {
    50: '#9177d4',
    500: '#5841c0',
    950: '#000000',
  },
}
SCSS
$custom: #5841c0;
$custom-light: #9177d4;
$custom-dark: #000000;
JSON
{
  "hex": "#5841c0",
  "rgb": {
    "r": 88,
    "g": 65,
    "b": 192
  },
  "hsl": {
    "h": 250.866,
    "s": 50.198,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47737,
    "c": 0.18876,
    "h": 285
  },
  "luminance": 0.09661
}

Semantic roles & 50–950 ramp

primary
#5841C0
secondary
#C0CB92
accent
#DA4EC0
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5841C0

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

Preview Lab → · Contrast checker → · Palette generator →

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