#5C175E#5C175E

#5C175E is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.1% C 0.133 H 326.8°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#5C175E
RGBrgb(92, 23, 94)
HSLhsl(298, 61%, 23%)
HSVhsv(298, 76%, 37%)
CMYKcmyk(2.1%, 75.5%, 0%, 63.1%)
CIE-LABlab(22.64, 40.40, -26.37)
CIE-LCHlch(22.64, 48.24, 326.86°)
OKLaboklab(35.06% 0.1116 -0.0732)
OKLCHoklch(35.06% 0.133 326.8)
XYZxyz(6.7403, 3.6967, 10.9460)
Luminance0.0370 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C175E #195E17
analogous
#38175E #5C175E #5E173C
triadic
#5C175E #5E5C17 #175E5C
tetradic
#5C175E #5E3817 #195E17 #173C5E
square
#5C175E #5E3817 #195E17 #173C5E
split-complementary
#5C175E #3C5E17 #175E38
monochromatic
#180619 #2C0B2D #5C175E #8C238F #BC2FC0

Accessibility & contrast

On white

12.07
#5C175E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#5C175E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C175E
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C175E#FFFFFF#000000##FFFFFF
##5C175E1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083060
Deuteranopia (green-blind)
#28395C
Tritanopia (blue-blind)
#5F2239
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5c175e;
/* rgb */ color: rgb(92, 23, 94);
/* oklch */ color: oklch(35.1% 0.133 326.8);
Tailwind
colors: {
  custom: {
    50: '#8d5c8c',
    500: '#5c175e',
    950: '#000000',
  },
}
SCSS
$custom: #5c175e;
$custom-light: #8d5c8c;
$custom-dark: #000000;
JSON
{
  "hex": "#5c175e",
  "rgb": {
    "r": 92,
    "g": 23,
    "b": 94
  },
  "hsl": {
    "h": 298.31,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.35062,
    "c": 0.13347,
    "h": 326.8
  },
  "luminance": 0.03696
}

Semantic roles & 50–950 ramp

primary
#5C175E
secondary
#3F953C
accent
#E44448
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5C175E

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

Preview Lab → · Contrast checker → · Palette generator →

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