#5839B4#5839B4

#5839B4 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.5% C 0.184 H 288.5°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#5839B4
RGBrgb(88, 57, 180)
HSLhsl(255, 52%, 46%)
HSVhsv(255, 68%, 71%)
CMYKcmyk(51.1%, 68.3%, 0%, 29.4%)
CIE-LABlab(34.59, 44.24, -60.69)
CIE-LCHlch(34.59, 75.11, 306.09°)
OKLaboklab(45.54% 0.0581 -0.1742)
OKLCHoklch(45.54% 0.184 288.5)
XYZxyz(13.7234, 8.2956, 44.0493)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5839B4 #95B439
analogous
#3958B4 #5839B4 #9639B4
triadic
#5839B4 #B45839 #39B458
tetradic
#5839B4 #B43958 #95B439 #39B496
square
#5839B4 #B43958 #95B439 #39B496
split-complementary
#5839B4 #B49639 #58B439
monochromatic
#2B1C57 #412A86 #5839B4 #7A5ECC #A08DDB

Accessibility & contrast

On white

7.90
#5839B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5839B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5839B4
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5839B4#FFFFFF#000000##FFFFFF
##5839B41.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B8
Deuteranopia (green-blind)
#004EB2
Tritanopia (blue-blind)
#375872
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5839b4;
/* rgb */ color: rgb(88, 57, 180);
/* oklch */ color: oklch(45.5% 0.184 288.5);
Tailwind
colors: {
  custom: {
    50: '#9072cb',
    500: '#5839b4',
    950: '#000000',
  },
}
SCSS
$custom: #5839b4;
$custom-light: #9072cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5839b4",
  "rgb": {
    "r": 88,
    "g": 57,
    "b": 180
  },
  "hsl": {
    "h": 255.122,
    "s": 51.899,
    "l": 46.471
  },
  "oklch": {
    "l": 0.45535,
    "c": 0.18363,
    "h": 288.5
  },
  "luminance": 0.08296
}

Semantic roles & 50–950 ramp

primary
#5839B4
secondary
#B5C583
accent
#DB4CB7
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5839B4

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

Preview Lab → · Contrast checker → · Palette generator →

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