#5841C2#5841C2

#5841C2 is a mid, vivid violet. Relative luminance 0.098; OKLCH L 47.9% C 0.191 H 284.7°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#5841C2
RGBrgb(88, 65, 194)
HSLhsl(251, 51%, 51%)
HSVhsv(251, 66%, 76%)
CMYKcmyk(54.6%, 66.5%, 0%, 23.9%)
CIE-LABlab(37.39, 43.92, -64.37)
CIE-LCHlch(37.39, 77.92, 304.31°)
OKLaboklab(47.91% 0.0486 -0.185)
OKLCHoklch(47.91% 0.191 284.7)
XYZxyz(15.6495, 9.7495, 52.0857)
Luminance0.0975 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5841C2 #ABC241
analogous
#416AC2 #5841C2 #9841C2
triadic
#5841C2 #C25841 #41C258
tetradic
#5841C2 #C2416A #ABC241 #41C298
square
#5841C2 #C2416A #ABC241 #41C298
split-complementary
#5841C2 #C29841 #6AC241
monochromatic
#2E2167 #423096 #5841C2 #816FD1 #A99EE0

Accessibility & contrast

On white

7.12
#5841C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#5841C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5841C2
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5841C2#FFFFFF#000000##FFFFFF
##5841C21.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC6
Deuteranopia (green-blind)
#0054BF
Tritanopia (blue-blind)
#29627C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5841c2;
/* rgb */ color: rgb(88, 65, 194);
/* oklch */ color: oklch(47.9% 0.191 284.7);
Tailwind
colors: {
  custom: {
    50: '#9177d5',
    500: '#5841c2',
    950: '#000000',
  },
}
SCSS
$custom: #5841c2;
$custom-light: #9177d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5841c2",
  "rgb": {
    "r": 88,
    "g": 65,
    "b": 194
  },
  "hsl": {
    "h": 250.698,
    "s": 51.394,
    "l": 50.784
  },
  "oklch": {
    "l": 0.47905,
    "c": 0.19126,
    "h": 284.7
  },
  "luminance": 0.0975
}

Semantic roles & 50–950 ramp

primary
#5841C2
secondary
#C2CC93
accent
#DB4DC2
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5841C2

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

Preview Lab → · Contrast checker → · Palette generator →

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