#5E178E#5E178E

#5E178E is a dark, vivid violet. Relative luminance 0.049; OKLCH L 39.0% C 0.179 H 306.3°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#5E178E
RGBrgb(94, 23, 142)
HSLhsl(276, 72%, 32%)
HSVhsv(276, 84%, 56%)
CMYKcmyk(33.8%, 83.8%, 0%, 44.3%)
CIE-LABlab(26.58, 50.96, -50.71)
CIE-LCHlch(26.58, 71.89, 315.14°)
OKLaboklab(39.04% 0.1062 -0.1444)
OKLCHoklch(39.04% 0.179 306.3)
XYZxyz(9.8039, 4.9456, 26.0241)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E178E #478E17
analogous
#22178E #5E178E #8E1783
triadic
#5E178E #8E5E17 #178E5E
tetradic
#5E178E #8E2217 #478E17 #17838E
square
#5E178E #8E2217 #478E17 #17838E
split-complementary
#5E178E #838E17 #178E22
monochromatic
#180625 #3B0E59 #5E178E #8120C3 #9F3FE0

Accessibility & contrast

On white

10.56
#5E178E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5E178E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E178E
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E178E#FFFFFF#000000##FFFFFF
##5E178E1.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#553854
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5e178e;
/* rgb */ color: rgb(94, 23, 142);
/* oklch */ color: oklch(39.0% 0.179 306.3);
Tailwind
colors: {
  custom: {
    50: '#915fb0',
    500: '#5e178e',
    950: '#000000',
  },
}
SCSS
$custom: #5e178e;
$custom-light: #915fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e178e",
  "rgb": {
    "r": 94,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 275.798,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.39041,
    "c": 0.1793,
    "h": 306.3
  },
  "luminance": 0.04945
}

Semantic roles & 50–950 ramp

primary
#5E178E
secondary
#74C040
accent
#EF3982
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5E178E

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

Preview Lab → · Contrast checker → · Palette generator →

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