#5D339A#5D339A

#5D339A is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.1% C 0.160 H 298.1°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#5D339A
RGBrgb(93, 51, 154)
HSLhsl(264, 50%, 40%)
HSVhsv(264, 67%, 60%)
CMYKcmyk(39.6%, 66.9%, 0%, 39.6%)
CIE-LABlab(31.87, 41.17, -49.48)
CIE-LCHlch(31.87, 64.37, 309.76°)
OKLaboklab(43.06% 0.0753 -0.141)
OKLCHoklch(43.06% 0.16 298.1)
XYZxyz(11.5293, 7.0277, 31.3146)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D339A #709A33
analogous
#333C9A #5D339A #90339A
triadic
#5D339A #9A5D33 #339A5D
tetradic
#5D339A #9A333C #709A33 #339A90
square
#5D339A #9A333C #709A33 #339A90
split-complementary
#5D339A #9A9033 #3C9A33
monochromatic
#25153E #41246C #5D339A #7A48C2 #9B76D2

Accessibility & contrast

On white

8.73
#5D339A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5D339A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D339A
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D339A#FFFFFF#000000##FFFFFF
##5D339A1.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9D
Deuteranopia (green-blind)
#004A98
Tritanopia (blue-blind)
#4E4B62
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5d339a;
/* rgb */ color: rgb(93, 51, 154);
/* oklch */ color: oklch(43.1% 0.160 298.1);
Tailwind
colors: {
  custom: {
    50: '#906db8',
    500: '#5d339a',
    950: '#000000',
  },
}
SCSS
$custom: #5d339a;
$custom-light: #906db8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d339a",
  "rgb": {
    "r": 93,
    "g": 51,
    "b": 154
  },
  "hsl": {
    "h": 264.466,
    "s": 50.244,
    "l": 40.196
  },
  "oklch": {
    "l": 0.4306,
    "c": 0.15986,
    "h": 298.1
  },
  "luminance": 0.07028
}

Semantic roles & 50–950 ramp

primary
#5D339A
secondary
#9BBA6F
accent
#DA4EA1
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5D339A

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

Preview Lab → · Contrast checker → · Palette generator →

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