#5839B8#5839B8

#5839B8 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.9% C 0.189 H 287.8°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#5839B8
RGBrgb(88, 57, 184)
HSLhsl(255, 53%, 47%)
HSVhsv(255, 69%, 72%)
CMYKcmyk(52.2%, 69%, 0%, 27.8%)
CIE-LABlab(34.93, 45.41, -62.51)
CIE-LCHlch(34.93, 77.27, 305.99°)
OKLaboklab(45.88% 0.0575 -0.1795)
OKLCHoklch(45.88% 0.189 287.8)
XYZxyz(14.1368, 8.4610, 46.2263)
Luminance0.0846 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5839B8 #99B839
analogous
#3959B8 #5839B8 #9839B8
triadic
#5839B8 #B85839 #39B858
tetradic
#5839B8 #B83959 #99B839 #39B898
square
#5839B8 #B83959 #99B839 #39B898
split-complementary
#5839B8 #B89839 #59B839
monochromatic
#2B1C5B #422B89 #5839B8 #7B60CE #A28FDC

Accessibility & contrast

On white

7.80
#5839B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5839B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5839B8
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5839B8#FFFFFF#000000##FFFFFF
##5839B81.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BC
Deuteranopia (green-blind)
#004FB6
Tritanopia (blue-blind)
#335A74
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5839b8;
/* rgb */ color: rgb(88, 57, 184);
/* oklch */ color: oklch(45.9% 0.189 287.8);
Tailwind
colors: {
  custom: {
    50: '#9072ce',
    500: '#5839b8',
    950: '#000000',
  },
}
SCSS
$custom: #5839b8;
$custom-light: #9072ce;
$custom-dark: #000000;
JSON
{
  "hex": "#5839b8",
  "rgb": {
    "r": 88,
    "g": 57,
    "b": 184
  },
  "hsl": {
    "h": 254.646,
    "s": 52.697,
    "l": 47.255
  },
  "oklch": {
    "l": 0.45878,
    "c": 0.18851,
    "h": 287.8
  },
  "luminance": 0.08462
}

Semantic roles & 50–950 ramp

primary
#5839B8
secondary
#B7C786
accent
#DC4CB9
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5839B8

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

Preview Lab → · Contrast checker → · Palette generator →

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