#5C1FA0#5C1FA0

#5C1FA0 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.1% C 0.190 H 298.9°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#5C1FA0
RGBrgb(92, 31, 160)
HSLhsl(268, 68%, 37%)
HSVhsv(268, 81%, 63%)
CMYKcmyk(42.5%, 80.6%, 0%, 37.3%)
CIE-LABlab(28.88, 52.01, -58.00)
CIE-LCHlch(28.88, 77.90, 311.88°)
OKLaboklab(41.07% 0.0917 -0.166)
OKLCHoklch(41.07% 0.19 298.9)
XYZxyz(11.2472, 5.7932, 33.7765)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1FA0 #63A01F
analogous
#1F23A0 #5C1FA0 #9C1FA0
triadic
#5C1FA0 #A05C1F #1FA05C
tetradic
#5C1FA0 #A01F23 #63A01F #1FA09C
square
#5C1FA0 #A01F23 #63A01F #1FA09C
split-complementary
#5C1FA0 #A09C1F #23A01F
monochromatic
#210B39 #3F156D #5C1FA0 #7929D3 #995ADF

Accessibility & contrast

On white

9.73
#5C1FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5C1FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1FA0
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1FA0#FFFFFF#000000##FFFFFF
##5C1FA01.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A3
Deuteranopia (green-blind)
#00439E
Tritanopia (blue-blind)
#4B4360
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5c1fa0;
/* rgb */ color: rgb(92, 31, 160);
/* oklch */ color: oklch(41.1% 0.190 298.9);
Tailwind
colors: {
  custom: {
    50: '#9163bd',
    500: '#5c1fa0',
    950: '#000000',
  },
}
SCSS
$custom: #5c1fa0;
$custom-light: #9163bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1fa0",
  "rgb": {
    "r": 92,
    "g": 31,
    "b": 160
  },
  "hsl": {
    "h": 268.372,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41073,
    "c": 0.18962,
    "h": 298.9
  },
  "luminance": 0.05793
}

Semantic roles & 50–950 ramp

primary
#5C1FA0
secondary
#90C358
accent
#EA3D99
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5C1FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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