#5C1789#5C1789

#5C1789 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.174 H 307.0°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#5C1789
RGBrgb(92, 23, 137)
HSLhsl(276, 71%, 31%)
HSVhsv(276, 83%, 54%)
CMYKcmyk(32.8%, 83.2%, 0%, 46.3%)
CIE-LABlab(25.85, 49.49, -48.80)
CIE-LCHlch(25.85, 69.50, 315.40°)
OKLaboklab(38.34% 0.1048 -0.1389)
OKLCHoklch(38.34% 0.174 307)
XYZxyz(9.2344, 4.6944, 24.0817)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1789 #448917
analogous
#231789 #5C1789 #89177D
triadic
#5C1789 #895C17 #17895C
tetradic
#5C1789 #892317 #448917 #177D89
square
#5C1789 #892317 #448917 #177D89
split-complementary
#5C1789 #7D8917 #178923
monochromatic
#160520 #390E55 #5C1789 #7F20BD #9E3CDE

Accessibility & contrast

On white

10.83
#5C1789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5C1789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1789
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1789#FFFFFF#000000##FFFFFF
##5C17891.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8C
Deuteranopia (green-blind)
#003E87
Tritanopia (blue-blind)
#543651
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5c1789;
/* rgb */ color: rgb(92, 23, 137);
/* oklch */ color: oklch(38.3% 0.174 307.0);
Tailwind
colors: {
  custom: {
    50: '#8f5eac',
    500: '#5c1789',
    950: '#000000',
  },
}
SCSS
$custom: #5c1789;
$custom-light: #8f5eac;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1789",
  "rgb": {
    "r": 92,
    "g": 23,
    "b": 137
  },
  "hsl": {
    "h": 276.316,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38335,
    "c": 0.17399,
    "h": 307
  },
  "luminance": 0.04694
}

Semantic roles & 50–950 ramp

primary
#5C1789
secondary
#71BD3F
accent
#EE3A81
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C1789

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

Preview Lab → · Contrast checker → · Palette generator →

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