#5C1889#5C1889

#5C1889 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.4% C 0.173 H 306.9°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#5C1889
RGBrgb(92, 24, 137)
HSLhsl(276, 70%, 32%)
HSVhsv(276, 82%, 54%)
CMYKcmyk(32.8%, 82.5%, 0%, 46.3%)
CIE-LABlab(25.97, 49.14, -48.61)
CIE-LCHlch(25.97, 69.12, 315.31°)
OKLaboklab(38.42% 0.104 -0.1383)
OKLCHoklch(38.42% 0.173 306.9)
XYZxyz(9.2546, 4.7348, 24.0884)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1889 #458918
analogous
#241889 #5C1889 #89187E
triadic
#5C1889 #895C18 #18895C
tetradic
#5C1889 #892418 #458918 #187E89
square
#5C1889 #892418 #458918 #187E89
split-complementary
#5C1889 #7E8918 #188924
monochromatic
#160621 #390F55 #5C1889 #7F21BD #9E3EDD

Accessibility & contrast

On white

10.79
#5C1889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5C1889 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1889
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1889#FFFFFF#000000##FFFFFF
##5C18891.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.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: #5c1889;
/* rgb */ color: rgb(92, 24, 137);
/* oklch */ color: oklch(38.4% 0.173 306.9);
Tailwind
colors: {
  custom: {
    50: '#8f5eac',
    500: '#5c1889',
    950: '#000000',
  },
}
SCSS
$custom: #5c1889;
$custom-light: #8f5eac;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1889",
  "rgb": {
    "r": 92,
    "g": 24,
    "b": 137
  },
  "hsl": {
    "h": 276.106,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38419,
    "c": 0.17307,
    "h": 306.9
  },
  "luminance": 0.04735
}

Semantic roles & 50–950 ramp

primary
#5C1889
secondary
#72BD40
accent
#ED3B82
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C1889

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

Preview Lab → · Contrast checker → · Palette generator →

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