#5839AB#5839AB

#5839AB is a dark, vivid violet. Relative luminance 0.079; OKLCH L 44.8% C 0.173 H 290.2°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#5839AB
RGBrgb(88, 57, 171)
HSLhsl(256, 50%, 45%)
HSVhsv(256, 67%, 67%)
CMYKcmyk(48.5%, 66.7%, 0%, 32.9%)
CIE-LABlab(33.86, 41.62, -56.53)
CIE-LCHlch(33.86, 70.20, 306.36°)
OKLaboklab(44.78% 0.0595 -0.1619)
OKLCHoklch(44.78% 0.173 290.2)
XYZxyz(12.8362, 7.9407, 39.3766)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5839AB #8CAB39
analogous
#3953AB #5839AB #9139AB
triadic
#5839AB #AB5839 #39AB58
tetradic
#5839AB #AB3953 #8CAB39 #39AB91
square
#5839AB #AB3953 #8CAB39 #39AB91
split-complementary
#5839AB #AB9139 #53AB39
monochromatic
#291A4F #402A7D #5839AB #7759C8 #9D87D7

Accessibility & contrast

On white

8.11
#5839AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5839AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5839AB
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5839AB#FFFFFF#000000##FFFFFF
##5839AB1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AF
Deuteranopia (green-blind)
#004DA9
Tritanopia (blue-blind)
#3D556D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5839ab;
/* rgb */ color: rgb(88, 57, 171);
/* oklch */ color: oklch(44.8% 0.173 290.2);
Tailwind
colors: {
  custom: {
    50: '#8e71c5',
    500: '#5839ab',
    950: '#000000',
  },
}
SCSS
$custom: #5839ab;
$custom-light: #8e71c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5839ab",
  "rgb": {
    "r": 88,
    "g": 57,
    "b": 171
  },
  "hsl": {
    "h": 256.316,
    "s": 50,
    "l": 44.706
  },
  "oklch": {
    "l": 0.44781,
    "c": 0.17251,
    "h": 290.2
  },
  "luminance": 0.07941
}

Semantic roles & 50–950 ramp

primary
#5839AB
secondary
#AFC17F
accent
#DA4EB4
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5839AB

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

Preview Lab → · Contrast checker → · Palette generator →

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