#5C1C98#5C1C98

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

Color values

HEX#5C1C98
RGBrgb(92, 28, 152)
HSLhsl(271, 69%, 35%)
HSVhsv(271, 82%, 60%)
CMYKcmyk(39.5%, 81.6%, 0%, 40.4%)
CIE-LABlab(27.77, 51.20, -54.94)
CIE-LCHlch(27.77, 75.10, 312.99°)
OKLaboklab(40.08% 0.0964 -0.157)
OKLCHoklch(40.08% 0.184 301.6)
XYZxyz(10.4950, 5.3728, 30.1838)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1C98 #58981C
analogous
#1E1C98 #5C1C98 #981C96
triadic
#5C1C98 #985C1C #1C985C
tetradic
#5C1C98 #981E1C #58981C #1C9698
square
#5C1C98 #981E1C #58981C #1C9698
split-complementary
#5C1C98 #96981C #1C981E
monochromatic
#1D0931 #3D1264 #5C1C98 #7B26CC #9A50DF

Accessibility & contrast

On white

10.12
#5C1C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C1C98
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1C98#FFFFFF#000000##FFFFFF
##5C1C981.0010.122.0710.12
#FFFFFF10.121.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#004196
Tritanopia (blue-blind)
#4F3E5B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5c1c98;
/* rgb */ color: rgb(92, 28, 152);
/* oklch */ color: oklch(40.1% 0.184 301.6);
Tailwind
colors: {
  custom: {
    50: '#9061b7',
    500: '#5c1c98',
    950: '#000000',
  },
}
SCSS
$custom: #5c1c98;
$custom-light: #9061b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1c98",
  "rgb": {
    "r": 92,
    "g": 28,
    "b": 152
  },
  "hsl": {
    "h": 270.968,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40079,
    "c": 0.18423,
    "h": 301.6
  },
  "luminance": 0.05373
}

Semantic roles & 50–950 ramp

primary
#5C1C98
secondary
#86C14E
accent
#EC3C91
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5C1C98

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

Preview Lab → · Contrast checker → · Palette generator →

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