#5839B5#5839B5

#5839B5 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.6% C 0.185 H 288.3°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#5839B5
RGBrgb(88, 57, 181)
HSLhsl(255, 52%, 47%)
HSVhsv(255, 69%, 71%)
CMYKcmyk(51.4%, 68.5%, 0%, 29%)
CIE-LABlab(34.67, 44.54, -61.15)
CIE-LCHlch(34.67, 75.65, 306.07°)
OKLaboklab(45.62% 0.058 -0.1755)
OKLCHoklch(45.62% 0.185 288.3)
XYZxyz(13.8257, 8.3365, 44.5877)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5839B5 #96B539
analogous
#3958B5 #5839B5 #9639B5
triadic
#5839B5 #B55839 #39B558
tetradic
#5839B5 #B53958 #96B539 #39B596
square
#5839B5 #B53958 #96B539 #39B596
split-complementary
#5839B5 #B59639 #58B539
monochromatic
#2B1C58 #412A86 #5839B5 #7A5FCD #A18DDB

Accessibility & contrast

On white

7.87
#5839B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5839B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5839B5
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5839B5#FFFFFF#000000##FFFFFF
##5839B51.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B9
Deuteranopia (green-blind)
#004EB3
Tritanopia (blue-blind)
#365872
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5839b5;
/* rgb */ color: rgb(88, 57, 181);
/* oklch */ color: oklch(45.6% 0.185 288.3);
Tailwind
colors: {
  custom: {
    50: '#9072cc',
    500: '#5839b5',
    950: '#000000',
  },
}
SCSS
$custom: #5839b5;
$custom-light: #9072cc;
$custom-dark: #000000;
JSON
{
  "hex": "#5839b5",
  "rgb": {
    "r": 88,
    "g": 57,
    "b": 181
  },
  "hsl": {
    "h": 255,
    "s": 52.101,
    "l": 46.667
  },
  "oklch": {
    "l": 0.4562,
    "c": 0.18485,
    "h": 288.3
  },
  "luminance": 0.08337
}

Semantic roles & 50–950 ramp

primary
#5839B5
secondary
#B5C684
accent
#DC4CB8
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5839B5

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

Preview Lab → · Contrast checker → · Palette generator →

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