#5D3497#5D3497

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

Color values

HEX#5D3497
RGBrgb(93, 52, 151)
HSLhsl(265, 49%, 40%)
HSVhsv(265, 66%, 59%)
CMYKcmyk(38.4%, 65.6%, 0%, 40.8%)
CIE-LABlab(31.85, 39.82, -47.69)
CIE-LCHlch(31.85, 62.13, 309.86°)
OKLaboklab(42.97% 0.0744 -0.1358)
OKLCHoklch(42.97% 0.155 298.7)
XYZxyz(11.3267, 7.0174, 30.0299)
Luminance0.0702 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3497 #6E9734
analogous
#343D97 #5D3497 #8E3497
triadic
#5D3497 #975D34 #34975D
tetradic
#5D3497 #97343D #6E9734 #34978E
square
#5D3497 #97343D #6E9734 #34978E
split-complementary
#5D3497 #978E34 #3D9734
monochromatic
#25153C #412469 #5D3497 #7A48C0 #9B76D0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5D3497#FFFFFF#000000##FFFFFF
##5D34971.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)
#004B9A
Deuteranopia (green-blind)
#004A95
Tritanopia (blue-blind)
#504A61
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5d3497;
/* rgb */ color: rgb(93, 52, 151);
/* oklch */ color: oklch(43.0% 0.155 298.7);
Tailwind
colors: {
  custom: {
    50: '#8f6eb6',
    500: '#5d3497',
    950: '#000000',
  },
}
SCSS
$custom: #5d3497;
$custom-light: #8f6eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3497",
  "rgb": {
    "r": 93,
    "g": 52,
    "b": 151
  },
  "hsl": {
    "h": 264.848,
    "s": 48.768,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42972,
    "c": 0.15484,
    "h": 298.7
  },
  "luminance": 0.07018
}

Semantic roles & 50–950 ramp

primary
#5D3497
secondary
#9AB86F
accent
#D84FA0
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5D3497

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

Preview Lab → · Contrast checker → · Palette generator →

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