#5C1796#5C1796

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

Color values

HEX#5C1796
RGBrgb(92, 23, 150)
HSLhsl(273, 73%, 34%)
HSVhsv(273, 85%, 59%)
CMYKcmyk(38.7%, 84.7%, 0%, 41.2%)
CIE-LABlab(26.99, 52.49, -54.99)
CIE-LCHlch(26.99, 76.02, 313.67°)
OKLaboklab(39.48% 0.1007 -0.1571)
OKLCHoklch(39.48% 0.187 302.7)
XYZxyz(10.2237, 5.0901, 29.2921)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1796 #519617
analogous
#1C1796 #5C1796 #961791
triadic
#5C1796 #965C17 #17965C
tetradic
#5C1796 #961C17 #519617 #179196
square
#5C1796 #961C17 #519617 #179196
split-complementary
#5C1796 #919617 #17961C
monochromatic
#1B072C #3B0F61 #5C1796 #7D1FCB #9B45E2

Accessibility & contrast

On white

10.41
#5C1796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C1796
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1796#FFFFFF#000000##FFFFFF
##5C17961.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F99
Deuteranopia (green-blind)
#003F94
Tritanopia (blue-blind)
#4F3C59
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5c1796;
/* rgb */ color: rgb(92, 23, 150);
/* oklch */ color: oklch(39.5% 0.187 302.7);
Tailwind
colors: {
  custom: {
    50: '#905fb6',
    500: '#5c1796',
    950: '#000000',
  },
}
SCSS
$custom: #5c1796;
$custom-light: #905fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1796",
  "rgb": {
    "r": 92,
    "g": 23,
    "b": 150
  },
  "hsl": {
    "h": 272.598,
    "s": 73.41,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39482,
    "c": 0.18659,
    "h": 302.7
  },
  "luminance": 0.0509
}

Semantic roles & 50–950 ramp

primary
#5C1796
secondary
#7FC345
accent
#F0388C
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5C1796

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

Preview Lab → · Contrast checker → · Palette generator →

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