#5841BC#5841BC

#5841BC is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.4% C 0.184 H 285.6°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#5841BC
RGBrgb(88, 65, 188)
HSLhsl(251, 49%, 50%)
HSVhsv(251, 65%, 74%)
CMYKcmyk(53.2%, 65.4%, 0%, 26.3%)
CIE-LABlab(36.90, 42.11, -61.64)
CIE-LCHlch(36.90, 74.65, 304.34°)
OKLaboklab(47.4% 0.0494 -0.177)
OKLCHoklch(47.4% 0.184 285.6)
XYZxyz(14.9892, 9.4853, 48.6082)
Luminance0.0949 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5841BC #A5BC41
analogous
#4167BC #5841BC #9641BC
triadic
#5841BC #BC5841 #41BC58
tetradic
#5841BC #BC4167 #A5BC41 #41BC96
square
#5841BC #BC4167 #A5BC41 #41BC96
split-complementary
#5841BC #BC9641 #67BC41
monochromatic
#2D2261 #43318F #5841BC #7F6ECD #A79BDC

Accessibility & contrast

On white

7.25
#5841BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#5841BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5841BC
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5841BC#FFFFFF#000000##FFFFFF
##5841BC1.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC0
Deuteranopia (green-blind)
#0053BA
Tritanopia (blue-blind)
#2F6079
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5841bc;
/* rgb */ color: rgb(88, 65, 188);
/* oklch */ color: oklch(47.4% 0.184 285.6);
Tailwind
colors: {
  custom: {
    50: '#9077d1',
    500: '#5841bc',
    950: '#000000',
  },
}
SCSS
$custom: #5841bc;
$custom-light: #9077d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5841bc",
  "rgb": {
    "r": 88,
    "g": 65,
    "b": 188
  },
  "hsl": {
    "h": 251.22,
    "s": 48.617,
    "l": 49.608
  },
  "oklch": {
    "l": 0.47403,
    "c": 0.18374,
    "h": 285.6
  },
  "luminance": 0.09486
}

Semantic roles & 50–950 ramp

primary
#5841BC
secondary
#BEC990
accent
#D850BF
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5841BC

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

Preview Lab → · Contrast checker → · Palette generator →

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