#5E176A#5E176A

#5E176A is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.2% C 0.145 H 321.4°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#5E176A
RGBrgb(94, 23, 106)
HSLhsl(291, 64%, 25%)
HSVhsv(291, 78%, 42%)
CMYKcmyk(11.3%, 78.3%, 0%, 58.4%)
CIE-LABlab(23.78, 43.21, -32.39)
CIE-LCHlch(23.78, 54.00, 323.14°)
OKLaboklab(36.2% 0.1136 -0.0907)
OKLCHoklch(36.2% 0.145 321.4)
XYZxyz(7.5237, 4.0335, 14.0151)
Luminance0.0403 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E176A #236A17
analogous
#34176A #5E176A #6A174D
triadic
#5E176A #6A5E17 #176A5E
tetradic
#5E176A #6A3417 #236A17 #174D6A
square
#5E176A #6A3417 #236A17 #174D6A
split-complementary
#5E176A #4D6A17 #176A34
monochromatic
#160519 #310C38 #5E176A #8B229C #B72DCF

Accessibility & contrast

On white

11.62
#5E176A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E176A
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E176A#FFFFFF#000000##FFFFFF
##5E176A1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346C
Deuteranopia (green-blind)
#223B68
Tritanopia (blue-blind)
#5F273F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5e176a;
/* rgb */ color: rgb(94, 23, 106);
/* oklch */ color: oklch(36.2% 0.145 321.4);
Tailwind
colors: {
  custom: {
    50: '#8f5d95',
    500: '#5e176a',
    950: '#000000',
  },
}
SCSS
$custom: #5e176a;
$custom-light: #8f5d95;
$custom-dark: #000000;
JSON
{
  "hex": "#5e176a",
  "rgb": {
    "r": 94,
    "g": 23,
    "b": 106
  },
  "hsl": {
    "h": 291.325,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.36197,
    "c": 0.14534,
    "h": 321.4
  },
  "luminance": 0.04033
}

Semantic roles & 50–950 ramp

primary
#5E176A
secondary
#4BA03D
accent
#E74059
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5E176A

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

Preview Lab → · Contrast checker → · Palette generator →

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