#5E397B#5E397B

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

Color values

HEX#5E397B
RGBrgb(94, 57, 123)
HSLhsl(274, 37%, 35%)
HSVhsv(274, 54%, 48%)
CMYKcmyk(23.6%, 53.7%, 0%, 51.8%)
CIE-LABlab(31.20, 29.84, -31.41)
CIE-LCHlch(31.20, 43.33, 313.54°)
OKLaboklab(41.93% 0.0692 -0.088)
OKLCHoklch(41.93% 0.112 308.2)
XYZxyz(9.6537, 6.7361, 19.5267)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E397B #567B39
analogous
#3D397B #5E397B #7B3977
triadic
#5E397B #7B5E39 #397B5E
tetradic
#5E397B #7B3D39 #567B39 #39777B
square
#5E397B #7B3D39 #567B39 #39777B
split-complementary
#5E397B #777B39 #397B3D
monochromatic
#1E1227 #3E2651 #5E397B #7E4CA5 #9C71BD

Accessibility & contrast

On white

8.95
#5E397B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5E397B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E397B
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E397B#FFFFFF#000000##FFFFFF
##5E397B1.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26487D
Deuteranopia (green-blind)
#314A79
Tritanopia (blue-blind)
#5A4454
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5e397b;
/* rgb */ color: rgb(94, 57, 123);
/* oklch */ color: oklch(41.9% 0.112 308.2);
Tailwind
colors: {
  custom: {
    50: '#8d71a1',
    500: '#5e397b',
    950: '#000000',
  },
}
SCSS
$custom: #5e397b;
$custom-light: #8d71a1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e397b",
  "rgb": {
    "r": 94,
    "g": 57,
    "b": 123
  },
  "hsl": {
    "h": 273.636,
    "s": 36.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.41932,
    "c": 0.11198,
    "h": 308.2
  },
  "luminance": 0.06736
}

Semantic roles & 50–950 ramp

primary
#5E397B
secondary
#84A669
accent
#CD5B8D
background
#F8F6FA
surface
#F0ECF3
border
#CBC7CD
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5E397B

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

Preview Lab → · Contrast checker → · Palette generator →

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