#5D339E#5D339E

#5D339E is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.4% C 0.165 H 297.0°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#5D339E
RGBrgb(93, 51, 158)
HSLhsl(264, 51%, 41%)
HSVhsv(264, 68%, 62%)
CMYKcmyk(41.1%, 67.7%, 0%, 38%)
CIE-LABlab(32.18, 42.26, -51.41)
CIE-LCHlch(32.18, 66.55, 309.42°)
OKLaboklab(43.38% 0.0748 -0.1467)
OKLCHoklch(43.38% 0.165 297)
XYZxyz(11.8680, 7.1632, 33.0985)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D339E #749E33
analogous
#333F9E #5D339E #92339E
triadic
#5D339E #9E5D33 #339E5D
tetradic
#5D339E #9E333F #749E33 #339E92
square
#5D339E #9E333F #749E33 #339E92
split-complementary
#5D339E #9E9233 #3F9E33
monochromatic
#271541 #422470 #5D339E #7A4AC4 #9C78D3

Accessibility & contrast

On white

8.63
#5D339E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D339E
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D339E#FFFFFF#000000##FFFFFF
##5D339E1.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA1
Deuteranopia (green-blind)
#004A9C
Tritanopia (blue-blind)
#4D4C64
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5d339e;
/* rgb */ color: rgb(93, 51, 158);
/* oklch */ color: oklch(43.4% 0.165 297.0);
Tailwind
colors: {
  custom: {
    50: '#906ebb',
    500: '#5d339e',
    950: '#000000',
  },
}
SCSS
$custom: #5d339e;
$custom-light: #906ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#5d339e",
  "rgb": {
    "r": 93,
    "g": 51,
    "b": 158
  },
  "hsl": {
    "h": 263.551,
    "s": 51.196,
    "l": 40.98
  },
  "oklch": {
    "l": 0.43376,
    "c": 0.16466,
    "h": 297
  },
  "luminance": 0.07163
}

Semantic roles & 50–950 ramp

primary
#5D339E
secondary
#9EBC71
accent
#DB4DA3
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D339E

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

Preview Lab → · Contrast checker → · Palette generator →

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