#5C1A93#5C1A93

#5C1A93 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.5% C 0.181 H 303.3°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#5C1A93
RGBrgb(92, 26, 147)
HSLhsl(273, 70%, 34%)
HSVhsv(273, 82%, 58%)
CMYKcmyk(37.4%, 82.3%, 0%, 42.4%)
CIE-LABlab(27.08, 50.75, -53.00)
CIE-LCHlch(27.08, 73.38, 313.76°)
OKLaboklab(39.46% 0.0995 -0.1513)
OKLCHoklch(39.46% 0.181 303.3)
XYZxyz(10.0482, 5.1207, 28.0571)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1A93 #51931A
analogous
#201A93 #5C1A93 #931A8E
triadic
#5C1A93 #935C1A #1A935C
tetradic
#5C1A93 #93201A #51931A #1A8E93
square
#5C1A93 #93201A #51931A #1A8E93
split-complementary
#5C1A93 #8E931A #1A9320
monochromatic
#1B082B #3B115F #5C1A93 #7D23C7 #9B49DF

Accessibility & contrast

On white

10.37
#5C1A93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5C1A93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1A93
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1A93#FFFFFF#000000##FFFFFF
##5C1A931.0010.372.0210.37
#FFFFFF10.371.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F96
Deuteranopia (green-blind)
#004091
Tritanopia (blue-blind)
#513B57
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5c1a93;
/* rgb */ color: rgb(92, 26, 147);
/* oklch */ color: oklch(39.5% 0.181 303.3);
Tailwind
colors: {
  custom: {
    50: '#9060b4',
    500: '#5c1a93',
    950: '#000000',
  },
}
SCSS
$custom: #5c1a93;
$custom-light: #9060b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1a93",
  "rgb": {
    "r": 92,
    "g": 26,
    "b": 147
  },
  "hsl": {
    "h": 272.727,
    "s": 69.942,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39459,
    "c": 0.18107,
    "h": 303.3
  },
  "luminance": 0.05121
}

Semantic roles & 50–950 ramp

primary
#5C1A93
secondary
#7FC048
accent
#ED3B8C
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5C1A93

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

Preview Lab → · Contrast checker → · Palette generator →

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