#5E3371#5E3371

#5E3371 is a dark, moderate purple. Relative luminance 0.059; OKLCH L 40.3% C 0.110 H 314.5°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#5E3371
RGBrgb(94, 51, 113)
HSLhsl(282, 38%, 32%)
HSVhsv(282, 55%, 44%)
CMYKcmyk(16.8%, 54.9%, 0%, 55.7%)
CIE-LABlab(29.26, 30.94, -28.17)
CIE-LCHlch(29.26, 41.84, 317.68°)
OKLaboklab(40.31% 0.0772 -0.0785)
OKLCHoklch(40.31% 0.11 314.5)
XYZxyz(8.7801, 5.9398, 16.3036)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E3371 #467133
analogous
#3F3371 #5E3371 #713365
triadic
#5E3371 #715E33 #33715E
tetradic
#5E3371 #713F33 #467133 #336571
square
#5E3371 #713F33 #467133 #336571
split-complementary
#5E3371 #657133 #33713F
monochromatic
#180D1D #3B2047 #5E3371 #81469B #A065B9

Accessibility & contrast

On white

9.60
#5E3371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5E3371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E3371
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E3371#FFFFFF#000000##FFFFFF
##5E33711.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244273
Deuteranopia (green-blind)
#32466F
Tritanopia (blue-blind)
#5D3D4D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5e3371;
/* rgb */ color: rgb(94, 51, 113);
/* oklch */ color: oklch(40.3% 0.110 314.5);
Tailwind
colors: {
  custom: {
    50: '#8d6c9a',
    500: '#5e3371',
    950: '#000000',
  },
}
SCSS
$custom: #5e3371;
$custom-light: #8d6c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5e3371",
  "rgb": {
    "r": 94,
    "g": 51,
    "b": 113
  },
  "hsl": {
    "h": 281.613,
    "s": 37.805,
    "l": 32.157
  },
  "oklch": {
    "l": 0.40311,
    "c": 0.11016,
    "h": 314.5
  },
  "luminance": 0.0594
}

Semantic roles & 50–950 ramp

primary
#5E3371
secondary
#73A25E
accent
#CE5A7E
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C070E
muted
#7D7A7E

Preview Lab

Preview with #5E3371

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

Preview Lab → · Contrast checker → · Palette generator →

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