#5E178F#5E178F

#5E178F is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.180 H 306.0°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#5E178F
RGBrgb(94, 23, 143)
HSLhsl(276, 72%, 33%)
HSVhsv(276, 84%, 56%)
CMYKcmyk(34.3%, 83.9%, 0%, 43.9%)
CIE-LABlab(26.67, 51.19, -51.19)
CIE-LCHlch(26.67, 72.39, 315.00°)
OKLaboklab(39.13% 0.1059 -0.1458)
OKLCHoklch(39.13% 0.18 306)
XYZxyz(9.8793, 4.9757, 26.4212)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E178F #488F17
analogous
#22178F #5E178F #8F1784
triadic
#5E178F #8F5E17 #178F5E
tetradic
#5E178F #8F2217 #488F17 #17848F
square
#5E178F #8F2217 #488F17 #17848F
split-complementary
#5E178F #848F17 #178F22
monochromatic
#190626 #3B0F5A #5E178F #811FC4 #9F40E0

Accessibility & contrast

On white

10.53
#5E178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5E178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E178F
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E178F#FFFFFF#000000##FFFFFF
##5E178F1.0010.532.0010.53
#FFFFFF10.531.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#553855
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5e178f;
/* rgb */ color: rgb(94, 23, 143);
/* oklch */ color: oklch(39.1% 0.180 306.0);
Tailwind
colors: {
  custom: {
    50: '#915fb1',
    500: '#5e178f',
    950: '#000000',
  },
}
SCSS
$custom: #5e178f;
$custom-light: #915fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e178f",
  "rgb": {
    "r": 94,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 275.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.39128,
    "c": 0.18026,
    "h": 306
  },
  "luminance": 0.04976
}

Semantic roles & 50–950 ramp

primary
#5E178F
secondary
#75C141
accent
#EF3983
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5E178F

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

Preview Lab → · Contrast checker → · Palette generator →

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