#5D337B#5D337B

#5D337B is a dark, vivid violet. Relative luminance 0.061; OKLCH L 40.8% C 0.122 H 308.9°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#5D337B
RGBrgb(93, 51, 123)
HSLhsl(275, 41%, 34%)
HSVhsv(275, 59%, 48%)
CMYKcmyk(24.4%, 58.5%, 0%, 51.8%)
CIE-LABlab(29.73, 33.08, -33.76)
CIE-LCHlch(29.73, 47.27, 314.42°)
OKLaboklab(40.82% 0.0766 -0.0949)
OKLCHoklch(40.82% 0.122 308.9)
XYZxyz(9.2725, 6.1250, 19.4288)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D337B #517B33
analogous
#39337B #5D337B #7B3375
triadic
#5D337B #7B5D33 #337B5D
tetradic
#5D337B #7B3933 #517B33 #33757B
square
#5D337B #7B3933 #517B33 #33757B
split-complementary
#5D337B #757B33 #337B39
monochromatic
#1C0F24 #3C2150 #5D337B #7E45A6 #9C68C0

Accessibility & contrast

On white

9.44
#5D337B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5D337B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D337B
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D337B#FFFFFF#000000##FFFFFF
##5D337B1.009.442.239.44
#FFFFFF9.441.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B447D
Deuteranopia (green-blind)
#2A4779
Tritanopia (blue-blind)
#594052
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5d337b;
/* rgb */ color: rgb(93, 51, 123);
/* oklch */ color: oklch(40.8% 0.122 308.9);
Tailwind
colors: {
  custom: {
    50: '#8d6da1',
    500: '#5d337b',
    950: '#000000',
  },
}
SCSS
$custom: #5d337b;
$custom-light: #8d6da1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d337b",
  "rgb": {
    "r": 93,
    "g": 51,
    "b": 123
  },
  "hsl": {
    "h": 275,
    "s": 41.379,
    "l": 34.118
  },
  "oklch": {
    "l": 0.40818,
    "c": 0.12194,
    "h": 308.9
  },
  "luminance": 0.06125
}

Semantic roles & 50–950 ramp

primary
#5D337B
secondary
#7FA862
accent
#D1578A
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5D337B

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

Preview Lab → · Contrast checker → · Palette generator →

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