#5C1175#5C1175

#5C1175 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.2% C 0.161 H 315.5°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#5C1175
RGBrgb(92, 17, 117)
HSLhsl(285, 75%, 26%)
HSVhsv(285, 85%, 46%)
CMYKcmyk(21.4%, 85.5%, 0%, 54.1%)
CIE-LABlab(23.54, 47.07, -39.89)
CIE-LCHlch(23.54, 61.70, 319.72°)
OKLaboklab(36.22% 0.1145 -0.1127)
OKLCHoklch(36.22% 0.161 315.5)
XYZxyz(7.8244, 3.9609, 17.1785)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1175 #2A7511
analogous
#2A1175 #5C1175 #75115C
triadic
#5C1175 #755C11 #11755C
tetradic
#5C1175 #752A11 #2A7511 #115C75
square
#5C1175 #752A11 #2A7511 #115C75
split-complementary
#5C1175 #5C7511 #11752A
monochromatic
#15041B #320940 #5C1175 #8619AA #B022DF

Accessibility & contrast

On white

11.72
#5C1175 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#5C1175 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1175
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1175#FFFFFF#000000##FFFFFF
##5C11751.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003478
Deuteranopia (green-blind)
#0C3A73
Tritanopia (blue-blind)
#5A2A44
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5c1175;
/* rgb */ color: rgb(92, 17, 117);
/* oklch */ color: oklch(36.2% 0.161 315.5);
Tailwind
colors: {
  custom: {
    50: '#8e5b9d',
    500: '#5c1175',
    950: '#000000',
  },
}
SCSS
$custom: #5c1175;
$custom-light: #8e5b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1175",
  "rgb": {
    "r": 92,
    "g": 17,
    "b": 117
  },
  "hsl": {
    "h": 285,
    "s": 74.627,
    "l": 26.275
  },
  "oklch": {
    "l": 0.36215,
    "c": 0.16065,
    "h": 315.5
  },
  "luminance": 0.03961
}

Semantic roles & 50–950 ramp

primary
#5C1175
secondary
#53AC36
accent
#F13765
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5C1175

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

Preview Lab → · Contrast checker → · Palette generator →

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