#5E179E#5E179E

#5E179E is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.5% C 0.195 H 301.2°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#5E179E
RGBrgb(94, 23, 158)
HSLhsl(272, 75%, 35%)
HSVhsv(272, 85%, 62%)
CMYKcmyk(40.5%, 85.4%, 0%, 38%)
CIE-LABlab(28.01, 54.65, -58.21)
CIE-LCHlch(28.01, 79.84, 313.19°)
OKLaboklab(40.47% 0.101 -0.1664)
OKLCHoklch(40.47% 0.195 301.2)
XYZxyz(11.0925, 5.4610, 32.8108)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E179E #579E17
analogous
#1B179E #5E179E #9E179A
triadic
#5E179E #9E5E17 #179E5E
tetradic
#5E179E #9E1B17 #579E17 #179A9E
square
#5E179E #9E1B17 #579E17 #179A9E
split-complementary
#5E179E #9A9E17 #179E1B
monochromatic
#1E0733 #3E0F69 #5E179E #7E1FD3 #9C4BE5

Accessibility & contrast

On white

10.04
#5E179E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5E179E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E179E
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E179E#FFFFFF#000000##FFFFFF
##5E179E1.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A1
Deuteranopia (green-blind)
#00419C
Tritanopia (blue-blind)
#4F3F5D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5e179e;
/* rgb */ color: rgb(94, 23, 158);
/* oklch */ color: oklch(40.5% 0.195 301.2);
Tailwind
colors: {
  custom: {
    50: '#9360bc',
    500: '#5e179e',
    950: '#000000',
  },
}
SCSS
$custom: #5e179e;
$custom-light: #9360bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5e179e",
  "rgb": {
    "r": 94,
    "g": 23,
    "b": 158
  },
  "hsl": {
    "h": 271.556,
    "s": 74.586,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40471,
    "c": 0.19469,
    "h": 301.2
  },
  "luminance": 0.05461
}

Semantic roles & 50–950 ramp

primary
#5E179E
secondary
#85C64A
accent
#F1378F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5E179E

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

Preview Lab → · Contrast checker → · Palette generator →

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