#5C1C97#5C1C97

#5C1C97 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 40.0% C 0.183 H 301.9°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#5C1C97
RGBrgb(92, 28, 151)
HSLhsl(271, 69%, 35%)
HSVhsv(271, 81%, 59%)
CMYKcmyk(39.1%, 81.5%, 0%, 40.8%)
CIE-LABlab(27.68, 50.96, -54.47)
CIE-LCHlch(27.68, 74.60, 313.10°)
OKLaboklab(39.99% 0.0968 -0.1556)
OKLCHoklch(39.99% 0.183 301.9)
XYZxyz(10.4134, 5.3401, 29.7543)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1C97 #57971C
analogous
#1F1C97 #5C1C97 #971C94
triadic
#5C1C97 #975C1C #1C975C
tetradic
#5C1C97 #971F1C #57971C #1C9497
square
#5C1C97 #971F1C #57971C #1C9497
split-complementary
#5C1C97 #94971C #1C971F
monochromatic
#1D0930 #3D1263 #5C1C97 #7B26CB #9A4FDE

Accessibility & contrast

On white

10.15
#5C1C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5C1C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1C97
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1C97#FFFFFF#000000##FFFFFF
##5C1C971.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#004195
Tritanopia (blue-blind)
#4F3E5A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5c1c97;
/* rgb */ color: rgb(92, 28, 151);
/* oklch */ color: oklch(40.0% 0.183 301.9);
Tailwind
colors: {
  custom: {
    50: '#9061b7',
    500: '#5c1c97',
    950: '#000000',
  },
}
SCSS
$custom: #5c1c97;
$custom-light: #9061b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1c97",
  "rgb": {
    "r": 92,
    "g": 28,
    "b": 151
  },
  "hsl": {
    "h": 271.22,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.3999,
    "c": 0.18323,
    "h": 301.9
  },
  "luminance": 0.0534
}

Semantic roles & 50–950 ramp

primary
#5C1C97
secondary
#85C14E
accent
#EC3C90
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5C1C97

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

Preview Lab → · Contrast checker → · Palette generator →

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