#5D3A84#5D3A84

#5D3A84 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 42.6% C 0.122 H 303.5°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#5D3A84
RGBrgb(93, 58, 132)
HSLhsl(268, 39%, 37%)
HSVhsv(268, 56%, 52%)
CMYKcmyk(29.5%, 56.1%, 0%, 48.2%)
CIE-LABlab(31.85, 31.29, -35.99)
CIE-LCHlch(31.85, 47.69, 311.00°)
OKLaboklab(42.56% 0.0671 -0.1014)
OKLCHoklch(42.56% 0.122 303.5)
XYZxyz(10.1912, 7.0192, 22.6433)
Luminance0.0702 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3A84 #61843A
analogous
#3A3C84 #5D3A84 #823A84
triadic
#5D3A84 #845D3A #3A845D
tetradic
#5D3A84 #843A3C #61843A #3A8482
square
#5D3A84 #843A3C #61843A #3A8482
split-complementary
#5D3A84 #84823A #3C843A
monochromatic
#21152F #3F2759 #5D3A84 #7B4DAF #9A76C3

Accessibility & contrast

On white

8.74
#5D3A84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5D3A84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3A84
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3A84#FFFFFF#000000##FFFFFF
##5D3A841.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4A86
Deuteranopia (green-blind)
#2B4B82
Tritanopia (blue-blind)
#564859
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5d3a84;
/* rgb */ color: rgb(93, 58, 132);
/* oklch */ color: oklch(42.6% 0.122 303.5);
Tailwind
colors: {
  custom: {
    50: '#8d71a8',
    500: '#5d3a84',
    950: '#000000',
  },
}
SCSS
$custom: #5d3a84;
$custom-light: #8d71a8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3a84",
  "rgb": {
    "r": 93,
    "g": 58,
    "b": 132
  },
  "hsl": {
    "h": 268.378,
    "s": 38.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.42563,
    "c": 0.12161,
    "h": 303.5
  },
  "luminance": 0.07019
}

Semantic roles & 50–950 ramp

primary
#5D3A84
secondary
#8FAC6E
accent
#CF5997
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0C0810
muted
#7D7B7F

Preview Lab

Preview with #5D3A84

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

Preview Lab → · Contrast checker → · Palette generator →

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