#5D337D#5D337D

#5D337D is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.0% C 0.124 H 308.0°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#5D337D
RGBrgb(93, 51, 125)
HSLhsl(274, 42%, 35%)
HSVhsv(274, 59%, 49%)
CMYKcmyk(25.6%, 59.2%, 0%, 51%)
CIE-LABlab(29.85, 33.58, -34.82)
CIE-LCHlch(29.85, 48.37, 313.97°)
OKLaboklab(40.95% 0.0767 -0.098)
OKLCHoklch(40.95% 0.124 308)
XYZxyz(9.3990, 6.1756, 20.0949)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D337D #537D33
analogous
#38337D #5D337D #7D3378
triadic
#5D337D #7D5D33 #337D5D
tetradic
#5D337D #7D3833 #537D33 #33787D
square
#5D337D #7D3833 #537D33 #33787D
split-complementary
#5D337D #787D33 #337D38
monochromatic
#1C1026 #3D2152 #5D337D #7D45A8 #9B69C2

Accessibility & contrast

On white

9.40
#5D337D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5D337D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D337D
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D337D#FFFFFF#000000##FFFFFF
##5D337D1.009.402.249.40
#FFFFFF9.401.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19457F
Deuteranopia (green-blind)
#29477B
Tritanopia (blue-blind)
#584153
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5d337d;
/* rgb */ color: rgb(93, 51, 125);
/* oklch */ color: oklch(41.0% 0.124 308.0);
Tailwind
colors: {
  custom: {
    50: '#8d6da3',
    500: '#5d337d',
    950: '#000000',
  },
}
SCSS
$custom: #5d337d;
$custom-light: #8d6da3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d337d",
  "rgb": {
    "r": 93,
    "g": 51,
    "b": 125
  },
  "hsl": {
    "h": 274.054,
    "s": 42.045,
    "l": 34.51
  },
  "oklch": {
    "l": 0.40951,
    "c": 0.1244,
    "h": 308
  },
  "luminance": 0.06175
}

Semantic roles & 50–950 ramp

primary
#5D337D
secondary
#81AA62
accent
#D2568C
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5D337D

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

Preview Lab → · Contrast checker → · Palette generator →

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