#5839B7#5839B7

#5839B7 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.8% C 0.187 H 287.9°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#5839B7
RGBrgb(88, 57, 183)
HSLhsl(255, 53%, 47%)
HSVhsv(255, 69%, 72%)
CMYKcmyk(51.9%, 68.9%, 0%, 28.2%)
CIE-LABlab(34.84, 45.12, -62.06)
CIE-LCHlch(34.84, 76.73, 306.02°)
OKLaboklab(45.79% 0.0577 -0.1782)
OKLCHoklch(45.79% 0.187 287.9)
XYZxyz(14.0324, 8.4192, 45.6762)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5839B7 #98B739
analogous
#3959B7 #5839B7 #9739B7
triadic
#5839B7 #B75839 #39B758
tetradic
#5839B7 #B73959 #98B739 #39B797
square
#5839B7 #B73959 #98B739 #39B797
split-complementary
#5839B7 #B79739 #59B739
monochromatic
#2B1C5A #422A88 #5839B7 #7B60CD #A28EDC

Accessibility & contrast

On white

7.82
#5839B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5839B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5839B7
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5839B7#FFFFFF#000000##FFFFFF
##5839B71.007.822.687.82
#FFFFFF7.821.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BB
Deuteranopia (green-blind)
#004FB5
Tritanopia (blue-blind)
#345973
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5839b7;
/* rgb */ color: rgb(88, 57, 183);
/* oklch */ color: oklch(45.8% 0.187 287.9);
Tailwind
colors: {
  custom: {
    50: '#9072ce',
    500: '#5839b7',
    950: '#000000',
  },
}
SCSS
$custom: #5839b7;
$custom-light: #9072ce;
$custom-dark: #000000;
JSON
{
  "hex": "#5839b7",
  "rgb": {
    "r": 88,
    "g": 57,
    "b": 183
  },
  "hsl": {
    "h": 254.762,
    "s": 52.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.45791,
    "c": 0.18729,
    "h": 287.9
  },
  "luminance": 0.0842
}

Semantic roles & 50–950 ramp

primary
#5839B7
secondary
#B7C785
accent
#DC4CB8
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5839B7

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

Preview Lab → · Contrast checker → · Palette generator →

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