#5839AE#5839AE

#5839AE is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.0% C 0.176 H 289.6°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#5839AE
RGBrgb(88, 57, 174)
HSLhsl(256, 51%, 45%)
HSVhsv(256, 67%, 68%)
CMYKcmyk(49.4%, 67.2%, 0%, 31.8%)
CIE-LABlab(34.10, 42.49, -57.93)
CIE-LCHlch(34.10, 71.84, 306.26°)
OKLaboklab(45.03% 0.059 -0.166)
OKLCHoklch(45.03% 0.176 289.6)
XYZxyz(13.1254, 8.0564, 40.8997)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5839AE #8FAE39
analogous
#3955AE #5839AE #9239AE
triadic
#5839AE #AE5839 #39AE58
tetradic
#5839AE #AE3955 #8FAE39 #39AE92
square
#5839AE #AE3955 #8FAE39 #39AE92
split-complementary
#5839AE #AE9239 #55AE39
monochromatic
#291B52 #412A80 #5839AE #785BC9 #9E89D8

Accessibility & contrast

On white

8.04
#5839AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5839AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5839AE
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5839AE#FFFFFF#000000##FFFFFF
##5839AE1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B2
Deuteranopia (green-blind)
#004DAC
Tritanopia (blue-blind)
#3B566E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5839ae;
/* rgb */ color: rgb(88, 57, 174);
/* oklch */ color: oklch(45.0% 0.176 289.6);
Tailwind
colors: {
  custom: {
    50: '#8f71c7',
    500: '#5839ae',
    950: '#000000',
  },
}
SCSS
$custom: #5839ae;
$custom-light: #8f71c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5839ae",
  "rgb": {
    "r": 88,
    "g": 57,
    "b": 174
  },
  "hsl": {
    "h": 255.897,
    "s": 50.649,
    "l": 45.294
  },
  "oklch": {
    "l": 0.45029,
    "c": 0.17623,
    "h": 289.6
  },
  "luminance": 0.08057
}

Semantic roles & 50–950 ramp

primary
#5839AE
secondary
#B1C380
accent
#DA4EB5
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5839AE

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

Preview Lab → · Contrast checker → · Palette generator →

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