#5841C8#5841C8

#5841C8 is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.4% C 0.199 H 283.9°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#5841C8
RGBrgb(88, 65, 200)
HSLhsl(250, 55%, 52%)
HSVhsv(250, 68%, 78%)
CMYKcmyk(56%, 67.5%, 0%, 21.6%)
CIE-LABlab(37.89, 45.73, -67.05)
CIE-LCHlch(37.89, 81.16, 304.30°)
OKLaboklab(48.42% 0.0478 -0.1929)
OKLCHoklch(48.42% 0.199 283.9)
XYZxyz(16.3369, 10.0244, 55.7064)
Luminance0.1003 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5841C8 #B1C841
analogous
#416EC8 #5841C8 #9B41C8
triadic
#5841C8 #C85841 #41C858
tetradic
#5841C8 #C8416E #B1C841 #41C89B
square
#5841C8 #C8416E #B1C841 #41C89B
split-complementary
#5841C8 #C89B41 #6EC841
monochromatic
#2D206F #412E9E #5841C8 #8270D6 #ABA0E3

Accessibility & contrast

On white

6.99
#5841C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#5841C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5841C8
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5841C8#FFFFFF#000000##FFFFFF
##5841C81.006.993.016.99
#FFFFFF6.991.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCC
Deuteranopia (green-blind)
#0055C5
Tritanopia (blue-blind)
#21647F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5841c8;
/* rgb */ color: rgb(88, 65, 200);
/* oklch */ color: oklch(48.4% 0.199 283.9);
Tailwind
colors: {
  custom: {
    50: '#9277da',
    500: '#5841c8',
    950: '#000000',
  },
}
SCSS
$custom: #5841c8;
$custom-light: #9277da;
$custom-dark: #000000;
JSON
{
  "hex": "#5841c8",
  "rgb": {
    "r": 88,
    "g": 65,
    "b": 200
  },
  "hsl": {
    "h": 250.222,
    "s": 55.102,
    "l": 51.961
  },
  "oklch": {
    "l": 0.48417,
    "c": 0.1987,
    "h": 283.9
  },
  "luminance": 0.10025
}

Semantic roles & 50–950 ramp

primary
#5841C8
secondary
#C6D095
accent
#DE49C5
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5841C8

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

Preview Lab → · Contrast checker → · Palette generator →

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