#5A3799#5A3799

#5A3799 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.2% C 0.153 H 295.8°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#5A3799
RGBrgb(90, 55, 153)
HSLhsl(261, 47%, 41%)
HSVhsv(261, 64%, 60%)
CMYKcmyk(41.2%, 64.1%, 0%, 40%)
CIE-LABlab(32.27, 38.02, -48.24)
CIE-LCHlch(32.27, 61.42, 308.24°)
OKLaboklab(43.25% 0.0664 -0.1375)
OKLCHoklch(43.25% 0.153 295.8)
XYZxyz(11.3309, 7.2057, 30.9247)
Luminance0.0721 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3799 #769937
analogous
#374599 #5A3799 #8B3799
triadic
#5A3799 #995A37 #37995A
tetradic
#5A3799 #993745 #769937 #37998B
square
#5A3799 #993745 #769937 #37998B
split-complementary
#5A3799 #998B37 #459937
monochromatic
#25173F #40276C #5A3799 #764EBF #997BD0

Accessibility & contrast

On white

8.60
#5A3799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#5A3799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3799
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3799#FFFFFF#000000##FFFFFF
##5A37991.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9C
Deuteranopia (green-blind)
#004B97
Tritanopia (blue-blind)
#4A4D63
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5a3799;
/* rgb */ color: rgb(90, 55, 153);
/* oklch */ color: oklch(43.2% 0.153 295.8);
Tailwind
colors: {
  custom: {
    50: '#8d70b8',
    500: '#5a3799',
    950: '#000000',
  },
}
SCSS
$custom: #5a3799;
$custom-light: #8d70b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3799",
  "rgb": {
    "r": 90,
    "g": 55,
    "b": 153
  },
  "hsl": {
    "h": 261.429,
    "s": 47.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.43247,
    "c": 0.15271,
    "h": 295.8
  },
  "luminance": 0.07206
}

Semantic roles & 50–950 ramp

primary
#5A3799
secondary
#A0B973
accent
#D751A7
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5A3799

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

Preview Lab → · Contrast checker → · Palette generator →

#5A3799 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva