#5E339D#5E339D

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

Color values

HEX#5E339D
RGBrgb(94, 51, 157)
HSLhsl(264, 51%, 41%)
HSVhsv(264, 68%, 62%)
CMYKcmyk(40.1%, 67.5%, 0%, 38.4%)
CIE-LABlab(32.22, 42.19, -50.74)
CIE-LCHlch(32.22, 65.99, 309.75°)
OKLaboklab(43.41% 0.0763 -0.1447)
OKLCHoklch(43.41% 0.164 297.8)
XYZxyz(11.8842, 7.1815, 32.6518)
Luminance0.0718 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E339D #729D33
analogous
#333D9D #5E339D #93339D
triadic
#5E339D #9D5E33 #339D5E
tetradic
#5E339D #9D333D #729D33 #339D93
square
#5E339D #9D333D #729D33 #339D93
split-complementary
#5E339D #9D9333 #3D9D33
monochromatic
#271541 #42246F #5E339D #7B49C4 #9D77D3

Accessibility & contrast

On white

8.62
#5E339D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E339D
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E339D#FFFFFF#000000##FFFFFF
##5E339D1.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA0
Deuteranopia (green-blind)
#004B9B
Tritanopia (blue-blind)
#4F4C63
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5e339d;
/* rgb */ color: rgb(94, 51, 157);
/* oklch */ color: oklch(43.4% 0.164 297.8);
Tailwind
colors: {
  custom: {
    50: '#916ebb',
    500: '#5e339d',
    950: '#000000',
  },
}
SCSS
$custom: #5e339d;
$custom-light: #916ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#5e339d",
  "rgb": {
    "r": 94,
    "g": 51,
    "b": 157
  },
  "hsl": {
    "h": 264.34,
    "s": 50.962,
    "l": 40.784
  },
  "oklch": {
    "l": 0.43408,
    "c": 0.16358,
    "h": 297.8
  },
  "luminance": 0.07182
}

Semantic roles & 50–950 ramp

primary
#5E339D
secondary
#9DBB70
accent
#DA4DA1
background
#F9F6FB
surface
#F2ECF6
border
#CCC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5E339D

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

Preview Lab → · Contrast checker → · Palette generator →

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