#5E137B#5E137B

#5E137B is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.1% C 0.165 H 313.9°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#5E137B
RGBrgb(94, 19, 123)
HSLhsl(283, 73%, 28%)
HSVhsv(283, 85%, 48%)
CMYKcmyk(23.6%, 84.6%, 0%, 51.8%)
CIE-LABlab(24.56, 48.08, -42.05)
CIE-LCHlch(24.56, 63.88, 318.83°)
OKLaboklab(37.15% 0.1144 -0.119)
OKLCHoklch(37.15% 0.165 313.9)
XYZxyz(8.4235, 4.2758, 19.1166)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E137B #307B13
analogous
#2A137B #5E137B #7B1364
triadic
#5E137B #7B5E13 #137B5E
tetradic
#5E137B #7B2A13 #307B13 #13647B
square
#5E137B #7B2A13 #307B13 #13647B
split-complementary
#5E137B #647B13 #137B2A
monochromatic
#14041B #350B46 #5E137B #871BB0 #AC2ADE

Accessibility & contrast

On white

11.32
#5E137B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#5E137B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E137B
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E137B#FFFFFF#000000##FFFFFF
##5E137B1.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#053C79
Tritanopia (blue-blind)
#5B2D48
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5e137b;
/* rgb */ color: rgb(94, 19, 123);
/* oklch */ color: oklch(37.1% 0.165 313.9);
Tailwind
colors: {
  custom: {
    50: '#905ca2',
    500: '#5e137b',
    950: '#000000',
  },
}
SCSS
$custom: #5e137b;
$custom-light: #905ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e137b",
  "rgb": {
    "r": 94,
    "g": 19,
    "b": 123
  },
  "hsl": {
    "h": 283.269,
    "s": 73.239,
    "l": 27.843
  },
  "oklch": {
    "l": 0.37146,
    "c": 0.16502,
    "h": 313.9
  },
  "luminance": 0.04275
}

Semantic roles & 50–950 ramp

primary
#5E137B
secondary
#5AB139
accent
#F0386B
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5E137B

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

Preview Lab → · Contrast checker → · Palette generator →

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