#5D3799#5D3799

#5D3799 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 43.6% C 0.153 H 297.5°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#5D3799
RGBrgb(93, 55, 153)
HSLhsl(263, 47%, 41%)
HSVhsv(263, 64%, 60%)
CMYKcmyk(39.2%, 64.1%, 0%, 40%)
CIE-LABlab(32.61, 38.69, -47.67)
CIE-LCHlch(32.61, 61.40, 309.06°)
OKLaboklab(43.57% 0.0707 -0.1357)
OKLCHoklch(43.57% 0.153 297.5)
XYZxyz(11.6287, 7.3593, 30.9386)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3799 #739937
analogous
#374299 #5D3799 #8E3799
triadic
#5D3799 #995D37 #37995D
tetradic
#5D3799 #993742 #739937 #37998E
square
#5D3799 #993742 #739937 #37998E
split-complementary
#5D3799 #998E37 #429937
monochromatic
#26173F #42276C #5D3799 #7A4EBF #9C7BD0

Accessibility & contrast

On white

8.50
#5D3799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5D3799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3799
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3799#FFFFFF#000000##FFFFFF
##5D37991.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9C
Deuteranopia (green-blind)
#024C97
Tritanopia (blue-blind)
#4F4D63
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5d3799;
/* rgb */ color: rgb(93, 55, 153);
/* oklch */ color: oklch(43.6% 0.153 297.5);
Tailwind
colors: {
  custom: {
    50: '#8f70b8',
    500: '#5d3799',
    950: '#000000',
  },
}
SCSS
$custom: #5d3799;
$custom-light: #8f70b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3799",
  "rgb": {
    "r": 93,
    "g": 55,
    "b": 153
  },
  "hsl": {
    "h": 263.265,
    "s": 47.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.43572,
    "c": 0.15303,
    "h": 297.5
  },
  "luminance": 0.07359
}

Semantic roles & 50–950 ramp

primary
#5D3799
secondary
#9EB973
accent
#D751A3
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5D3799

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

Preview Lab → · Contrast checker → · Palette generator →

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