#5E337A#5E337A

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

Color values

HEX#5E337A
RGBrgb(94, 51, 122)
HSLhsl(276, 41%, 34%)
HSVhsv(276, 58%, 48%)
CMYKcmyk(23%, 58.2%, 0%, 52.2%)
CIE-LABlab(29.79, 33.11, -33.01)
CIE-LCHlch(29.79, 46.76, 315.09°)
OKLaboklab(40.88% 0.0779 -0.0927)
OKLCHoklch(40.88% 0.121 310.1)
XYZxyz(9.3121, 6.1526, 19.1056)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E337A #4F7A33
analogous
#3B337A #5E337A #7A3373
triadic
#5E337A #7A5E33 #337A5E
tetradic
#5E337A #7A3B33 #4F7A33 #33737A
square
#5E337A #7A3B33 #4F7A33 #33737A
split-complementary
#5E337A #737A33 #337A3B
monochromatic
#1B0F24 #3D214F #5E337A #7F45A5 #9D68C0

Accessibility & contrast

On white

9.42
#5E337A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5E337A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E337A
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E337A#FFFFFF#000000##FFFFFF
##5E337A1.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D447C
Deuteranopia (green-blind)
#2C4778
Tritanopia (blue-blind)
#5A4051
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5e337a;
/* rgb */ color: rgb(94, 51, 122);
/* oklch */ color: oklch(40.9% 0.121 310.1);
Tailwind
colors: {
  custom: {
    50: '#8e6da1',
    500: '#5e337a',
    950: '#000000',
  },
}
SCSS
$custom: #5e337a;
$custom-light: #8e6da1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e337a",
  "rgb": {
    "r": 94,
    "g": 51,
    "b": 122
  },
  "hsl": {
    "h": 276.338,
    "s": 41.04,
    "l": 33.922
  },
  "oklch": {
    "l": 0.40878,
    "c": 0.12108,
    "h": 310.1
  },
  "luminance": 0.06152
}

Semantic roles & 50–950 ramp

primary
#5E337A
secondary
#7DA861
accent
#D15787
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C070F
muted
#7D7A7E

Preview Lab

Preview with #5E337A

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

Preview Lab → · Contrast checker → · Palette generator →

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