#5841C5#5841C5

#5841C5 is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.2% C 0.195 H 284.3°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#5841C5
RGBrgb(88, 65, 197)
HSLhsl(250, 53%, 51%)
HSVhsv(250, 67%, 77%)
CMYKcmyk(55.3%, 67%, 0%, 22.7%)
CIE-LABlab(37.64, 44.83, -65.71)
CIE-LCHlch(37.64, 79.55, 304.30°)
OKLaboklab(48.16% 0.0482 -0.1889)
OKLCHoklch(48.16% 0.195 284.3)
XYZxyz(15.9898, 9.8856, 53.8780)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5841C5 #AEC541
analogous
#416CC5 #5841C5 #9A41C5
triadic
#5841C5 #C55841 #41C558
tetradic
#5841C5 #C5416C #AEC541 #41C59A
square
#5841C5 #C5416C #AEC541 #41C59A
split-complementary
#5841C5 #C59A41 #6CC541
monochromatic
#2E216B #422F9A #5841C5 #8170D3 #AA9FE2

Accessibility & contrast

On white

7.05
#5841C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#5841C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5841C5
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5841C5#FFFFFF#000000##FFFFFF
##5841C51.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC9
Deuteranopia (green-blind)
#0054C2
Tritanopia (blue-blind)
#25637D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5841c5;
/* rgb */ color: rgb(88, 65, 197);
/* oklch */ color: oklch(48.2% 0.195 284.3);
Tailwind
colors: {
  custom: {
    50: '#9277d8',
    500: '#5841c5',
    950: '#000000',
  },
}
SCSS
$custom: #5841c5;
$custom-light: #9277d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5841c5",
  "rgb": {
    "r": 88,
    "g": 65,
    "b": 197
  },
  "hsl": {
    "h": 250.455,
    "s": 53.226,
    "l": 51.373
  },
  "oklch": {
    "l": 0.4816,
    "c": 0.19499,
    "h": 284.3
  },
  "luminance": 0.09887
}

Semantic roles & 50–950 ramp

primary
#5841C5
secondary
#C4CE94
accent
#DD4BC3
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5841C5

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

Preview Lab → · Contrast checker → · Palette generator →

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