#5839B2#5839B2

#5839B2 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.4% C 0.181 H 288.8°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#5839B2
RGBrgb(88, 57, 178)
HSLhsl(255, 51%, 46%)
HSVhsv(255, 68%, 70%)
CMYKcmyk(50.6%, 68%, 0%, 30.2%)
CIE-LABlab(34.43, 43.66, -59.77)
CIE-LCHlch(34.43, 74.02, 306.14°)
OKLaboklab(45.37% 0.0585 -0.1715)
OKLCHoklch(45.37% 0.181 288.8)
XYZxyz(13.5212, 8.2147, 42.9840)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5839B2 #93B239
analogous
#3956B2 #5839B2 #9439B2
triadic
#5839B2 #B25839 #39B258
tetradic
#5839B2 #B23956 #93B239 #39B294
square
#5839B2 #B23956 #93B239 #39B294
split-complementary
#5839B2 #B29439 #56B239
monochromatic
#2A1B55 #412A84 #5839B2 #795DCB #A08BDA

Accessibility & contrast

On white

7.95
#5839B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5839B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5839B2
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5839B2#FFFFFF#000000##FFFFFF
##5839B21.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#004EB0
Tritanopia (blue-blind)
#385771
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5839b2;
/* rgb */ color: rgb(88, 57, 178);
/* oklch */ color: oklch(45.4% 0.181 288.8);
Tailwind
colors: {
  custom: {
    50: '#8f72ca',
    500: '#5839b2',
    950: '#000000',
  },
}
SCSS
$custom: #5839b2;
$custom-light: #8f72ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5839b2",
  "rgb": {
    "r": 88,
    "g": 57,
    "b": 178
  },
  "hsl": {
    "h": 255.372,
    "s": 51.489,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45365,
    "c": 0.18117,
    "h": 288.8
  },
  "luminance": 0.08215
}

Semantic roles & 50–950 ramp

primary
#5839B2
secondary
#B3C482
accent
#DB4DB7
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5839B2

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

Preview Lab → · Contrast checker → · Palette generator →

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