#5839B9#5839B9

#5839B9 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.0% C 0.190 H 287.6°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#5839B9
RGBrgb(88, 57, 185)
HSLhsl(255, 53%, 47%)
HSVhsv(255, 69%, 73%)
CMYKcmyk(52.4%, 69.2%, 0%, 27.5%)
CIE-LABlab(35.01, 45.70, -62.97)
CIE-LCHlch(35.01, 77.81, 305.97°)
OKLaboklab(45.96% 0.0573 -0.1809)
OKLCHoklch(45.96% 0.19 287.6)
XYZxyz(14.2420, 8.5030, 46.7803)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5839B9 #9AB939
analogous
#395AB9 #5839B9 #9839B9
triadic
#5839B9 #B95839 #39B958
tetradic
#5839B9 #B9395A #9AB939 #39B998
square
#5839B9 #B9395A #9AB939 #39B998
split-complementary
#5839B9 #B99839 #5AB939
monochromatic
#2B1C5B #422B8A #5839B9 #7B61CE #A290DD

Accessibility & contrast

On white

7.78
#5839B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5839B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5839B9
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5839B9#FFFFFF#000000##FFFFFF
##5839B91.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BD
Deuteranopia (green-blind)
#004FB7
Tritanopia (blue-blind)
#335A74
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5839b9;
/* rgb */ color: rgb(88, 57, 185);
/* oklch */ color: oklch(46.0% 0.190 287.6);
Tailwind
colors: {
  custom: {
    50: '#9072cf',
    500: '#5839b9',
    950: '#000000',
  },
}
SCSS
$custom: #5839b9;
$custom-light: #9072cf;
$custom-dark: #000000;
JSON
{
  "hex": "#5839b9",
  "rgb": {
    "r": 88,
    "g": 57,
    "b": 185
  },
  "hsl": {
    "h": 254.531,
    "s": 52.893,
    "l": 47.451
  },
  "oklch": {
    "l": 0.45964,
    "c": 0.18973,
    "h": 287.6
  },
  "luminance": 0.08504
}

Semantic roles & 50–950 ramp

primary
#5839B9
secondary
#B8C886
accent
#DC4BB9
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5839B9

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

Preview Lab → · Contrast checker → · Palette generator →

#5839B9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva