#5E178A#5E178A

#5E178A is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.7% C 0.175 H 307.7°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#5E178A
RGBrgb(94, 23, 138)
HSLhsl(277, 71%, 32%)
HSVhsv(277, 83%, 54%)
CMYKcmyk(31.9%, 83.3%, 0%, 45.9%)
CIE-LABlab(26.24, 50.05, -48.77)
CIE-LCHlch(26.24, 69.89, 315.74°)
OKLaboklab(38.7% 0.1074 -0.1388)
OKLCHoklch(38.7% 0.175 307.7)
XYZxyz(9.5090, 4.8276, 24.4707)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E178A #438A17
analogous
#24178A #5E178A #8A177D
triadic
#5E178A #8A5E17 #178A5E
tetradic
#5E178A #8A2417 #438A17 #177D8A
square
#5E178A #8A2417 #438A17 #177D8A
split-complementary
#5E178A #7D8A17 #178A24
monochromatic
#170621 #3A0E56 #5E178A #8220BE #A13DDF

Accessibility & contrast

On white

10.68
#5E178A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5E178A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E178A
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E178A#FFFFFF#000000##FFFFFF
##5E178A1.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003F88
Tritanopia (blue-blind)
#573652
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e178a;
/* rgb */ color: rgb(94, 23, 138);
/* oklch */ color: oklch(38.7% 0.175 307.7);
Tailwind
colors: {
  custom: {
    50: '#915ead',
    500: '#5e178a',
    950: '#000000',
  },
}
SCSS
$custom: #5e178a;
$custom-light: #915ead;
$custom-dark: #000000;
JSON
{
  "hex": "#5e178a",
  "rgb": {
    "r": 94,
    "g": 23,
    "b": 138
  },
  "hsl": {
    "h": 277.043,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38698,
    "c": 0.17546,
    "h": 307.7
  },
  "luminance": 0.04827
}

Semantic roles & 50–950 ramp

primary
#5E178A
secondary
#70BE3F
accent
#EE3A7F
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E178A

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

Preview Lab → · Contrast checker → · Palette generator →

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