#5E337B#5E337B

#5E337B is a dark, vivid violet. Relative luminance 0.062; OKLCH L 40.9% C 0.122 H 309.6°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#5E337B
RGBrgb(94, 51, 123)
HSLhsl(276, 41%, 34%)
HSVhsv(276, 59%, 48%)
CMYKcmyk(23.6%, 58.5%, 0%, 51.8%)
CIE-LABlab(29.86, 33.36, -33.54)
CIE-LCHlch(29.86, 47.31, 314.84°)
OKLaboklab(40.94% 0.078 -0.0942)
OKLCHoklch(40.94% 0.122 309.6)
XYZxyz(9.3744, 6.1776, 19.4336)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E337B #507B33
analogous
#3A337B #5E337B #7B3374
triadic
#5E337B #7B5E33 #337B5E
tetradic
#5E337B #7B3A33 #507B33 #33747B
square
#5E337B #7B3A33 #507B33 #33747B
split-complementary
#5E337B #747B33 #337B3A
monochromatic
#1C0F24 #3D2150 #5E337B #7F45A6 #9D68C0

Accessibility & contrast

On white

9.39
#5E337B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5E337B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E337B
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E337B#FFFFFF#000000##FFFFFF
##5E337B1.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C447D
Deuteranopia (green-blind)
#2B4779
Tritanopia (blue-blind)
#5A4052
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5e337b;
/* rgb */ color: rgb(94, 51, 123);
/* oklch */ color: oklch(40.9% 0.122 309.6);
Tailwind
colors: {
  custom: {
    50: '#8e6da1',
    500: '#5e337b',
    950: '#000000',
  },
}
SCSS
$custom: #5e337b;
$custom-light: #8e6da1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e337b",
  "rgb": {
    "r": 94,
    "g": 51,
    "b": 123
  },
  "hsl": {
    "h": 275.833,
    "s": 41.379,
    "l": 34.118
  },
  "oklch": {
    "l": 0.40943,
    "c": 0.1223,
    "h": 309.6
  },
  "luminance": 0.06177
}

Semantic roles & 50–950 ramp

primary
#5E337B
secondary
#7EA862
accent
#D15788
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5E337B

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

Preview Lab → · Contrast checker → · Palette generator →

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