#5D339F#5D339F

#5D339F is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.5% C 0.166 H 296.7°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#5D339F
RGBrgb(93, 51, 159)
HSLhsl(263, 51%, 41%)
HSVhsv(263, 68%, 62%)
CMYKcmyk(41.5%, 67.9%, 0%, 37.6%)
CIE-LABlab(32.25, 42.53, -51.90)
CIE-LCHlch(32.25, 67.09, 309.33°)
OKLaboklab(43.46% 0.0746 -0.1481)
OKLCHoklch(43.46% 0.166 296.7)
XYZxyz(11.9544, 7.1978, 33.5536)
Luminance0.0720 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D339F #759F33
analogous
#333F9F #5D339F #93339F
triadic
#5D339F #9F5D33 #339F5D
tetradic
#5D339F #9F333F #759F33 #339F93
square
#5D339F #9F333F #759F33 #339F93
split-complementary
#5D339F #9F9333 #3F9F33
monochromatic
#271542 #422471 #5D339F #7A4AC5 #9C79D4

Accessibility & contrast

On white

8.61
#5D339F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#5D339F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D339F
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D339F#FFFFFF#000000##FFFFFF
##5D339F1.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA2
Deuteranopia (green-blind)
#004A9D
Tritanopia (blue-blind)
#4C4D64
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5d339f;
/* rgb */ color: rgb(93, 51, 159);
/* oklch */ color: oklch(43.5% 0.166 296.7);
Tailwind
colors: {
  custom: {
    50: '#906ebc',
    500: '#5d339f',
    950: '#000000',
  },
}
SCSS
$custom: #5d339f;
$custom-light: #906ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d339f",
  "rgb": {
    "r": 93,
    "g": 51,
    "b": 159
  },
  "hsl": {
    "h": 263.333,
    "s": 51.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43456,
    "c": 0.16587,
    "h": 296.7
  },
  "luminance": 0.07198
}

Semantic roles & 50–950 ramp

primary
#5D339F
secondary
#9FBC71
accent
#DB4DA4
background
#F9F6FB
surface
#F2ECF6
border
#CCC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D339F

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

Preview Lab → · Contrast checker → · Palette generator →

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