#5E177A#5E177A

#5E177A is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.4% C 0.160 H 314.0°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#5E177A
RGBrgb(94, 23, 122)
HSLhsl(283, 68%, 28%)
HSVhsv(283, 81%, 48%)
CMYKcmyk(23%, 81.1%, 0%, 52.2%)
CIE-LABlab(24.95, 46.53, -40.80)
CIE-LCHlch(24.95, 61.89, 318.76°)
OKLaboklab(37.39% 0.1113 -0.1153)
OKLCHoklch(37.39% 0.16 314)
XYZxyz(8.4347, 4.3979, 18.8131)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E177A #337A17
analogous
#2C177A #5E177A #7A1764
triadic
#5E177A #7A5E17 #177A5E
tetradic
#5E177A #7A2C17 #337A17 #17647A
square
#5E177A #7A2C17 #337A17 #17647A
split-complementary
#5E177A #647A17 #177A2C
monochromatic
#14051A #360D47 #5E177A #8621AD #AA33D9

Accessibility & contrast

On white

11.17
#5E177A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#5E177A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E177A
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E177A#FFFFFF#000000##FFFFFF
##5E177A1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#0D3D78
Tritanopia (blue-blind)
#5B2F48
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5e177a;
/* rgb */ color: rgb(94, 23, 122);
/* oklch */ color: oklch(37.4% 0.160 314.0);
Tailwind
colors: {
  custom: {
    50: '#905da1',
    500: '#5e177a',
    950: '#000000',
  },
}
SCSS
$custom: #5e177a;
$custom-light: #905da1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e177a",
  "rgb": {
    "r": 94,
    "g": 23,
    "b": 122
  },
  "hsl": {
    "h": 283.03,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37389,
    "c": 0.16025,
    "h": 314
  },
  "luminance": 0.04398
}

Semantic roles & 50–950 ramp

primary
#5E177A
secondary
#5EAF3E
accent
#EB3D6E
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E177A

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

Preview Lab → · Contrast checker → · Palette generator →

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