#5D3A7E#5D3A7E

#5D3A7E is a dark, moderate violet. Relative luminance 0.069; OKLCH L 42.2% C 0.114 H 305.9°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#5D3A7E
RGBrgb(93, 58, 126)
HSLhsl(271, 37%, 36%)
HSVhsv(271, 54%, 49%)
CMYKcmyk(26.2%, 54%, 0%, 50.6%)
CIE-LABlab(31.49, 29.72, -32.84)
CIE-LCHlch(31.49, 44.29, 312.15°)
OKLaboklab(42.17% 0.0667 -0.0922)
OKLCHoklch(42.17% 0.114 305.9)
XYZxyz(9.7924, 6.8597, 20.5428)
Luminance0.0686 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3A7E #5B7E3A
analogous
#3B3A7E #5D3A7E #7E3A7D
triadic
#5D3A7E #7E5D3A #3A7E5D
tetradic
#5D3A7E #7E3B3A #5B7E3A #3A7D7E
square
#5D3A7E #7E3B3A #5B7E3A #3A7D7E
split-complementary
#5D3A7E #7D7E3A #3A7E3B
monochromatic
#1F132A #3E2754 #5D3A7E #7C4DA8 #9A74BF

Accessibility & contrast

On white

8.85
#5D3A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5D3A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3A7E
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3A7E#FFFFFF#000000##FFFFFF
##5D3A7E1.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254980
Deuteranopia (green-blind)
#304A7C
Tritanopia (blue-blind)
#584656
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5d3a7e;
/* rgb */ color: rgb(93, 58, 126);
/* oklch */ color: oklch(42.2% 0.114 305.9);
Tailwind
colors: {
  custom: {
    50: '#8d71a4',
    500: '#5d3a7e',
    950: '#000000',
  },
}
SCSS
$custom: #5d3a7e;
$custom-light: #8d71a4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3a7e",
  "rgb": {
    "r": 93,
    "g": 58,
    "b": 126
  },
  "hsl": {
    "h": 270.882,
    "s": 36.957,
    "l": 36.078
  },
  "oklch": {
    "l": 0.42174,
    "c": 0.1138,
    "h": 305.9
  },
  "luminance": 0.0686
}

Semantic roles & 50–950 ramp

primary
#5D3A7E
secondary
#89A86C
accent
#CD5B92
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0C080F
muted
#7D7B7F

Preview Lab

Preview with #5D3A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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