#5E396B#5E396B

#5E396B is a dark, moderate purple. Relative luminance 0.064; OKLCH L 41.0% C 0.092 H 316.9°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#5E396B
RGBrgb(94, 57, 107)
HSLhsl(284, 30%, 32%)
HSVhsv(284, 47%, 42%)
CMYKcmyk(12.1%, 46.7%, 0%, 58%)
CIE-LABlab(30.32, 25.95, -22.68)
CIE-LCHlch(30.32, 34.47, 318.85°)
OKLaboklab(40.99% 0.0669 -0.0627)
OKLCHoklch(40.99% 0.092 316.9)
XYZxyz(8.7327, 6.3677, 14.6761)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E396B #466B39
analogous
#45396B #5E396B #6B395F
triadic
#5E396B #6B5E39 #396B5E
tetradic
#5E396B #6B4539 #466B39 #395F6B
square
#5E396B #6B4539 #466B39 #395F6B
split-complementary
#5E396B #5F6B39 #396B45
monochromatic
#180E1B #3B2443 #5E396B #814E93 #A06DB1

Accessibility & contrast

On white

9.24
#5E396B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5E396B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E396B
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E396B#FFFFFF#000000##FFFFFF
##5E396B1.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#30456D
Deuteranopia (green-blind)
#3A496A
Tritanopia (blue-blind)
#5E404D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5e396b;
/* rgb */ color: rgb(94, 57, 107);
/* oklch */ color: oklch(41.0% 0.092 316.9);
Tailwind
colors: {
  custom: {
    50: '#8d7095',
    500: '#5e396b',
    950: '#000000',
  },
}
SCSS
$custom: #5e396b;
$custom-light: #8d7095;
$custom-dark: #000000;
JSON
{
  "hex": "#5e396b",
  "rgb": {
    "r": 94,
    "g": 57,
    "b": 107
  },
  "hsl": {
    "h": 284.4,
    "s": 30.488,
    "l": 32.157
  },
  "oklch": {
    "l": 0.40994,
    "c": 0.0917,
    "h": 316.9
  },
  "luminance": 0.06367
}

Semantic roles & 50–950 ramp

primary
#5E396B
secondary
#739B65
accent
#C7617C
background
#F8F6F9
surface
#F0ECF1
border
#CBC7CB
text
#0C070D
muted
#7D7A7E

Preview Lab

Preview with #5E396B

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

Preview Lab → · Contrast checker → · Palette generator →

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