#5D339D#5D339D

#5D339D is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.3% C 0.163 H 297.3°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#5D339D
RGBrgb(93, 51, 157)
HSLhsl(264, 51%, 41%)
HSVhsv(264, 68%, 62%)
CMYKcmyk(40.8%, 67.5%, 0%, 38.4%)
CIE-LABlab(32.10, 41.99, -50.93)
CIE-LCHlch(32.10, 66.01, 309.50°)
OKLaboklab(43.3% 0.0749 -0.1453)
OKLCHoklch(43.3% 0.163 297.3)
XYZxyz(11.7823, 7.1289, 32.6470)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D339D #739D33
analogous
#333E9D #5D339D #92339D
triadic
#5D339D #9D5D33 #339D5D
tetradic
#5D339D #9D333E #739D33 #339D92
square
#5D339D #9D333E #739D33 #339D92
split-complementary
#5D339D #9D9233 #3E9D33
monochromatic
#261541 #42246F #5D339D #7A49C4 #9C77D3

Accessibility & contrast

On white

8.66
#5D339D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#5D339D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D339D
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D339D#FFFFFF#000000##FFFFFF
##5D339D1.008.662.438.66
#FFFFFF8.661.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA0
Deuteranopia (green-blind)
#004A9B
Tritanopia (blue-blind)
#4D4C63
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5d339d;
/* rgb */ color: rgb(93, 51, 157);
/* oklch */ color: oklch(43.3% 0.163 297.3);
Tailwind
colors: {
  custom: {
    50: '#906ebb',
    500: '#5d339d',
    950: '#000000',
  },
}
SCSS
$custom: #5d339d;
$custom-light: #906ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#5d339d",
  "rgb": {
    "r": 93,
    "g": 51,
    "b": 157
  },
  "hsl": {
    "h": 263.774,
    "s": 50.962,
    "l": 40.784
  },
  "oklch": {
    "l": 0.43297,
    "c": 0.16347,
    "h": 297.3
  },
  "luminance": 0.07129
}

Semantic roles & 50–950 ramp

primary
#5D339D
secondary
#9EBB70
accent
#DA4DA3
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D339D

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

Preview Lab → · Contrast checker → · Palette generator →

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