#5839BA#5839BA

#5839BA is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.1% C 0.191 H 287.4°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#5839BA
RGBrgb(88, 57, 186)
HSLhsl(254, 53%, 48%)
HSVhsv(254, 69%, 73%)
CMYKcmyk(52.7%, 69.4%, 0%, 27.1%)
CIE-LABlab(35.09, 46.00, -63.42)
CIE-LCHlch(35.09, 78.34, 305.95°)
OKLaboklab(46.05% 0.0571 -0.1822)
OKLCHoklch(46.05% 0.191 287.4)
XYZxyz(14.3479, 8.5454, 47.3383)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5839BA #9BBA39
analogous
#395ABA #5839BA #9939BA
triadic
#5839BA #BA5839 #39BA58
tetradic
#5839BA #BA395A #9BBA39 #39BA99
square
#5839BA #BA395A #9BBA39 #39BA99
split-complementary
#5839BA #BA9939 #5ABA39
monochromatic
#2C1C5C #422B8B #5839BA #7C61CF #A390DD

Accessibility & contrast

On white

7.75
#5839BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5839BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5839BA
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5839BA#FFFFFF#000000##FFFFFF
##5839BA1.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BE
Deuteranopia (green-blind)
#004FB7
Tritanopia (blue-blind)
#325A75
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5839ba;
/* rgb */ color: rgb(88, 57, 186);
/* oklch */ color: oklch(46.1% 0.191 287.4);
Tailwind
colors: {
  custom: {
    50: '#9072d0',
    500: '#5839ba',
    950: '#000000',
  },
}
SCSS
$custom: #5839ba;
$custom-light: #9072d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5839ba",
  "rgb": {
    "r": 88,
    "g": 57,
    "b": 186
  },
  "hsl": {
    "h": 254.419,
    "s": 53.086,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46051,
    "c": 0.19093,
    "h": 287.4
  },
  "luminance": 0.08546
}

Semantic roles & 50–950 ramp

primary
#5839BA
secondary
#B8C887
accent
#DC4BBA
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5839BA

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

Preview Lab → · Contrast checker → · Palette generator →

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