#5C179E#5C179E

#5C179E is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.2% C 0.194 H 300.2°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#5C179E
RGBrgb(92, 23, 158)
HSLhsl(271, 75%, 35%)
HSVhsv(271, 85%, 62%)
CMYKcmyk(41.8%, 85.4%, 0%, 38%)
CIE-LABlab(27.73, 54.37, -58.68)
CIE-LCHlch(27.73, 79.99, 312.81°)
OKLaboklab(40.22% 0.0979 -0.1679)
OKLCHoklch(40.22% 0.194 300.2)
XYZxyz(10.8900, 5.3566, 32.8013)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C179E #599E17
analogous
#19179E #5C179E #9E179C
triadic
#5C179E #9E5C17 #179E5C
tetradic
#5C179E #9E1917 #599E17 #179C9E
square
#5C179E #9E1917 #599E17 #179C9E
split-complementary
#5C179E #9C9E17 #179E19
monochromatic
#1E0733 #3D0F69 #5C179E #7B1FD3 #994BE5

Accessibility & contrast

On white

10.14
#5C179E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5C179E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C179E
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C179E#FFFFFF#000000##FFFFFF
##5C179E1.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A2
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#4C3F5D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5c179e;
/* rgb */ color: rgb(92, 23, 158);
/* oklch */ color: oklch(40.2% 0.194 300.2);
Tailwind
colors: {
  custom: {
    50: '#915fbc',
    500: '#5c179e',
    950: '#000000',
  },
}
SCSS
$custom: #5c179e;
$custom-light: #915fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#5c179e",
  "rgb": {
    "r": 92,
    "g": 23,
    "b": 158
  },
  "hsl": {
    "h": 270.667,
    "s": 74.586,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40216,
    "c": 0.19438,
    "h": 300.2
  },
  "luminance": 0.05357
}

Semantic roles & 50–950 ramp

primary
#5C179E
secondary
#87C64A
accent
#F13792
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0512
muted
#7E7981

Preview Lab

Preview with #5C179E

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

Preview Lab → · Contrast checker → · Palette generator →

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