#5E397D#5E397D

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

Color values

HEX#5E397D
RGBrgb(94, 57, 125)
HSLhsl(273, 37%, 36%)
HSVhsv(273, 54%, 49%)
CMYKcmyk(24.8%, 54.4%, 0%, 51%)
CIE-LABlab(31.32, 30.35, -32.47)
CIE-LCHlch(31.32, 44.45, 313.06°)
OKLaboklab(42.06% 0.0694 -0.0911)
OKLCHoklch(42.06% 0.115 307.3)
XYZxyz(9.7801, 6.7867, 20.1928)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E397D #587D39
analogous
#3C397D #5E397D #7D397A
triadic
#5E397D #7D5E39 #397D5E
tetradic
#5E397D #7D3C39 #587D39 #397A7D
square
#5E397D #7D3C39 #587D39 #397A7D
split-complementary
#5E397D #7A7D39 #397D3C
monochromatic
#1F1329 #3E2653 #5E397D #7E4CA7 #9C72BF

Accessibility & contrast

On white

8.91
#5E397D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E397D
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E397D#FFFFFF#000000##FFFFFF
##5E397D1.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25487F
Deuteranopia (green-blind)
#304A7B
Tritanopia (blue-blind)
#594555
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5e397d;
/* rgb */ color: rgb(94, 57, 125);
/* oklch */ color: oklch(42.1% 0.115 307.3);
Tailwind
colors: {
  custom: {
    50: '#8e71a3',
    500: '#5e397d',
    950: '#000000',
  },
}
SCSS
$custom: #5e397d;
$custom-light: #8e71a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e397d",
  "rgb": {
    "r": 94,
    "g": 57,
    "b": 125
  },
  "hsl": {
    "h": 272.647,
    "s": 37.363,
    "l": 35.686
  },
  "oklch": {
    "l": 0.42057,
    "c": 0.11455,
    "h": 307.3
  },
  "luminance": 0.06787
}

Semantic roles & 50–950 ramp

primary
#5E397D
secondary
#86A86A
accent
#CD5A8F
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5E397D

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

Preview Lab → · Contrast checker → · Palette generator →

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