#5D337E#5D337E

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

Color values

HEX#5D337E
RGBrgb(93, 51, 126)
HSLhsl(274, 42%, 35%)
HSVhsv(274, 60%, 49%)
CMYKcmyk(26.2%, 59.5%, 0%, 50.6%)
CIE-LABlab(29.91, 33.83, -35.34)
CIE-LCHlch(29.91, 48.92, 313.75°)
OKLaboklab(41.02% 0.0767 -0.0995)
OKLCHoklch(41.02% 0.126 307.6)
XYZxyz(9.4632, 6.2013, 20.4331)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D337E #547E33
analogous
#38337E #5D337E #7E337A
triadic
#5D337E #7E5D33 #337E5D
tetradic
#5D337E #7E3833 #547E33 #337A7E
square
#5D337E #7E3833 #547E33 #337A7E
split-complementary
#5D337E #7A7E33 #337E38
monochromatic
#1D1027 #3D2152 #5D337E #7D45AA #9B69C2

Accessibility & contrast

On white

9.37
#5D337E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D337E
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D337E#FFFFFF#000000##FFFFFF
##5D337E1.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174580
Deuteranopia (green-blind)
#28477C
Tritanopia (blue-blind)
#584153
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5d337e;
/* rgb */ color: rgb(93, 51, 126);
/* oklch */ color: oklch(41.0% 0.126 307.6);
Tailwind
colors: {
  custom: {
    50: '#8d6da4',
    500: '#5d337e',
    950: '#000000',
  },
}
SCSS
$custom: #5d337e;
$custom-light: #8d6da4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d337e",
  "rgb": {
    "r": 93,
    "g": 51,
    "b": 126
  },
  "hsl": {
    "h": 273.6,
    "s": 42.373,
    "l": 34.706
  },
  "oklch": {
    "l": 0.41018,
    "c": 0.12563,
    "h": 307.6
  },
  "luminance": 0.06201
}

Semantic roles & 50–950 ramp

primary
#5D337E
secondary
#82AA63
accent
#D2568C
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5D337E

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

Preview Lab → · Contrast checker → · Palette generator →

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