#5E1174#5E1174

#5E1174 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.4% C 0.160 H 317.0°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#5E1174
RGBrgb(94, 17, 116)
HSLhsl(287, 74%, 26%)
HSVhsv(287, 85%, 45%)
CMYKcmyk(19%, 85.3%, 0%, 54.5%)
CIE-LABlab(23.81, 47.24, -38.80)
CIE-LCHlch(23.81, 61.14, 320.60°)
OKLaboklab(36.45% 0.1174 -0.1094)
OKLCHoklch(36.45% 0.16 317)
XYZxyz(7.9685, 4.0419, 16.8800)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1174 #277411
analogous
#2C1174 #5E1174 #741158
triadic
#5E1174 #745E11 #11745E
tetradic
#5E1174 #742C11 #277411 #115874
square
#5E1174 #742C11 #277411 #115874
split-complementary
#5E1174 #587411 #11742C
monochromatic
#16041B #33093F #5E1174 #8919A9 #B421DE

Accessibility & contrast

On white

11.61
#5E1174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#5E1174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1174
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1174#FFFFFF#000000##FFFFFF
##5E11741.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003477
Deuteranopia (green-blind)
#123B72
Tritanopia (blue-blind)
#5D2944
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5e1174;
/* rgb */ color: rgb(94, 17, 116);
/* oklch */ color: oklch(36.4% 0.160 317.0);
Tailwind
colors: {
  custom: {
    50: '#8f5b9d',
    500: '#5e1174',
    950: '#000000',
  },
}
SCSS
$custom: #5e1174;
$custom-light: #8f5b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1174",
  "rgb": {
    "r": 94,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 286.667,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.36446,
    "c": 0.16049,
    "h": 317
  },
  "luminance": 0.04042
}

Semantic roles & 50–950 ramp

primary
#5E1174
secondary
#50AB36
accent
#F13760
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5E1174

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

Preview Lab → · Contrast checker → · Palette generator →

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