#5C1E8A#5C1E8A

#5C1E8A is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.168 H 305.9°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#5C1E8A
RGBrgb(92, 30, 138)
HSLhsl(274, 64%, 33%)
HSVhsv(274, 78%, 54%)
CMYKcmyk(33.3%, 78.3%, 0%, 45.9%)
CIE-LABlab(26.85, 47.07, -47.80)
CIE-LCHlch(26.85, 67.09, 314.56°)
OKLaboklab(39.06% 0.0986 -0.136)
OKLCHoklch(39.06% 0.168 305.9)
XYZxyz(9.4643, 5.0389, 24.5138)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1E8A #4C8A1E
analogous
#261E8A #5C1E8A #8A1E82
triadic
#5C1E8A #8A5C1E #1E8A5C
tetradic
#5C1E8A #8A261E #4C8A1E #1E828A
square
#5C1E8A #8A261E #4C8A1E #1E828A
split-complementary
#5C1E8A #828A1E #1E8A26
monochromatic
#190825 #3A1358 #5C1E8A #7E29BC #9C4BD8

Accessibility & contrast

On white

10.46
#5C1E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5C1E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1E8A
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1E8A#FFFFFF#000000##FFFFFF
##5C1E8A1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#004088
Tritanopia (blue-blind)
#543953
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5c1e8a;
/* rgb */ color: rgb(92, 30, 138);
/* oklch */ color: oklch(39.1% 0.168 305.9);
Tailwind
colors: {
  custom: {
    50: '#8f61ad',
    500: '#5c1e8a',
    950: '#000000',
  },
}
SCSS
$custom: #5c1e8a;
$custom-light: #8f61ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1e8a",
  "rgb": {
    "r": 92,
    "g": 30,
    "b": 138
  },
  "hsl": {
    "h": 274.444,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39061,
    "c": 0.16798,
    "h": 305.9
  },
  "luminance": 0.05039
}

Semantic roles & 50–950 ramp

primary
#5C1E8A
secondary
#7ABA4A
accent
#E74188
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5C1E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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