#5E178C#5E178C

#5E178C is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.9% C 0.177 H 307.0°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#5E178C
RGBrgb(94, 23, 140)
HSLhsl(276, 72%, 32%)
HSVhsv(276, 84%, 55%)
CMYKcmyk(32.9%, 83.6%, 0%, 45.1%)
CIE-LABlab(26.41, 50.51, -49.74)
CIE-LCHlch(26.41, 70.89, 315.44°)
OKLaboklab(38.87% 0.1068 -0.1416)
OKLCHoklch(38.87% 0.177 307)
XYZxyz(9.6551, 4.8860, 25.2403)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E178C #458C17
analogous
#23178C #5E178C #8C1780
triadic
#5E178C #8C5E17 #178C5E
tetradic
#5E178C #8C2317 #458C17 #17808C
square
#5E178C #8C2317 #458C17 #17808C
split-complementary
#5E178C #808C17 #178C23
monochromatic
#170623 #3B0E57 #5E178C #8120C1 #A03EDF

Accessibility & contrast

On white

10.62
#5E178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5E178C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E178C
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E178C#FFFFFF#000000##FFFFFF
##5E178C1.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#003F8A
Tritanopia (blue-blind)
#563753
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e178c;
/* rgb */ color: rgb(94, 23, 140);
/* oklch */ color: oklch(38.9% 0.177 307.0);
Tailwind
colors: {
  custom: {
    50: '#915fae',
    500: '#5e178c',
    950: '#000000',
  },
}
SCSS
$custom: #5e178c;
$custom-light: #915fae;
$custom-dark: #000000;
JSON
{
  "hex": "#5e178c",
  "rgb": {
    "r": 94,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 276.41,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38869,
    "c": 0.17738,
    "h": 307
  },
  "luminance": 0.04886
}

Semantic roles & 50–950 ramp

primary
#5E178C
secondary
#72BF3F
accent
#EF3981
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E178C

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

Preview Lab → · Contrast checker → · Palette generator →

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