#5E397E#5E397E

#5E397E is a dark, moderate violet. Relative luminance 0.068; OKLCH L 42.1% C 0.116 H 306.9°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#5E397E
RGBrgb(94, 57, 126)
HSLhsl(272, 38%, 36%)
HSVhsv(272, 55%, 49%)
CMYKcmyk(25.4%, 54.8%, 0%, 50.6%)
CIE-LABlab(31.38, 30.60, -33.00)
CIE-LCHlch(31.38, 45.01, 312.84°)
OKLaboklab(42.12% 0.0695 -0.0927)
OKLCHoklch(42.12% 0.116 306.9)
XYZxyz(9.8443, 6.8124, 20.5309)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E397E #597E39
analogous
#3B397E #5E397E #7E397B
triadic
#5E397E #7E5E39 #397E5E
tetradic
#5E397E #7E3B39 #597E39 #397B7E
square
#5E397E #7E3B39 #597E39 #397B7E
split-complementary
#5E397E #7B7E39 #397E3B
monochromatic
#1F132A #3F2654 #5E397E #7D4CA8 #9B72BF

Accessibility & contrast

On white

8.89
#5E397E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5E397E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E397E
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E397E#FFFFFF#000000##FFFFFF
##5E397E1.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244880
Deuteranopia (green-blind)
#2F4A7C
Tritanopia (blue-blind)
#594556
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5e397e;
/* rgb */ color: rgb(94, 57, 126);
/* oklch */ color: oklch(42.1% 0.116 306.9);
Tailwind
colors: {
  custom: {
    50: '#8e71a4',
    500: '#5e397e',
    950: '#000000',
  },
}
SCSS
$custom: #5e397e;
$custom-light: #8e71a4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e397e",
  "rgb": {
    "r": 94,
    "g": 57,
    "b": 126
  },
  "hsl": {
    "h": 272.174,
    "s": 37.705,
    "l": 35.882
  },
  "oklch": {
    "l": 0.42121,
    "c": 0.11584,
    "h": 306.9
  },
  "luminance": 0.06812
}

Semantic roles & 50–950 ramp

primary
#5E397E
secondary
#87A86A
accent
#CE5A90
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5E397E

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

Preview Lab → · Contrast checker → · Palette generator →

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