#5E397A#5E397A

#5E397A is a dark, moderate violet. Relative luminance 0.067; OKLCH L 41.9% C 0.111 H 308.7°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#5E397A
RGBrgb(94, 57, 122)
HSLhsl(274, 36%, 35%)
HSVhsv(274, 53%, 48%)
CMYKcmyk(23%, 53.3%, 0%, 52.2%)
CIE-LABlab(31.14, 29.59, -30.87)
CIE-LCHlch(31.14, 42.77, 313.79°)
OKLaboklab(41.87% 0.0691 -0.0864)
OKLCHoklch(41.87% 0.111 308.7)
XYZxyz(9.5914, 6.7112, 19.1987)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E397A #557A39
analogous
#3D397A #5E397A #7A3975
triadic
#5E397A #7A5E39 #397A5E
tetradic
#5E397A #7A3D39 #557A39 #39757A
square
#5E397A #7A3D39 #557A39 #39757A
split-complementary
#5E397A #757A39 #397A3D
monochromatic
#1E1227 #3E2650 #5E397A #7E4CA4 #9C71BD

Accessibility & contrast

On white

8.97
#5E397A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5E397A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E397A
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E397A#FFFFFF#000000##FFFFFF
##5E397A1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27487C
Deuteranopia (green-blind)
#324A78
Tritanopia (blue-blind)
#5A4454
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5e397a;
/* rgb */ color: rgb(94, 57, 122);
/* oklch */ color: oklch(41.9% 0.111 308.7);
Tailwind
colors: {
  custom: {
    50: '#8d71a1',
    500: '#5e397a',
    950: '#000000',
  },
}
SCSS
$custom: #5e397a;
$custom-light: #8d71a1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e397a",
  "rgb": {
    "r": 94,
    "g": 57,
    "b": 122
  },
  "hsl": {
    "h": 274.154,
    "s": 36.313,
    "l": 35.098
  },
  "oklch": {
    "l": 0.4187,
    "c": 0.1107,
    "h": 308.7
  },
  "luminance": 0.06711
}

Semantic roles & 50–950 ramp

primary
#5E397A
secondary
#83A669
accent
#CC5B8C
background
#F8F6F9
surface
#F0ECF2
border
#CBC7CC
text
#0C070F
muted
#7D7A7E

Preview Lab

Preview with #5E397A

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

Preview Lab → · Contrast checker → · Palette generator →

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