#5C1E96#5C1E96

#5C1E96 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.1% C 0.180 H 302.0°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#5C1E96
RGBrgb(92, 30, 150)
HSLhsl(271, 67%, 35%)
HSVhsv(271, 80%, 59%)
CMYKcmyk(38.7%, 80%, 0%, 41.2%)
CIE-LABlab(27.86, 49.95, -53.56)
CIE-LCHlch(27.86, 73.24, 313.00°)
OKLaboklab(40.09% 0.0954 -0.1529)
OKLCHoklch(40.09% 0.18 302)
XYZxyz(10.3816, 5.4058, 29.3447)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1E96 #58961E
analogous
#201E96 #5C1E96 #961E94
triadic
#5C1E96 #965C1E #1E965C
tetradic
#5C1E96 #96201E #58961E #1E9496
square
#5C1E96 #96201E #58961E #1E9496
split-complementary
#5C1E96 #94961E #1E9620
monochromatic
#1D0A30 #3D1463 #5C1E96 #7B28C9 #9A52DC

Accessibility & contrast

On white

10.09
#5C1E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5C1E96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1E96
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1E96#FFFFFF#000000##FFFFFF
##5C1E961.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004199
Deuteranopia (green-blind)
#004194
Tritanopia (blue-blind)
#4F3E5A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5c1e96;
/* rgb */ color: rgb(92, 30, 150);
/* oklch */ color: oklch(40.1% 0.180 302.0);
Tailwind
colors: {
  custom: {
    50: '#9062b6',
    500: '#5c1e96',
    950: '#000000',
  },
}
SCSS
$custom: #5c1e96;
$custom-light: #9062b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1e96",
  "rgb": {
    "r": 92,
    "g": 30,
    "b": 150
  },
  "hsl": {
    "h": 271,
    "s": 66.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40087,
    "c": 0.18028,
    "h": 302
  },
  "luminance": 0.05406
}

Semantic roles & 50–950 ramp

primary
#5C1E96
secondary
#86BF50
accent
#EA3E91
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5C1E96

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

Preview Lab → · Contrast checker → · Palette generator →

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