#5C1D94#5C1D94

#5C1D94 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.8% C 0.179 H 302.7°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#5C1D94
RGBrgb(92, 29, 148)
HSLhsl(272, 67%, 35%)
HSVhsv(272, 80%, 58%)
CMYKcmyk(37.8%, 80.4%, 0%, 42%)
CIE-LABlab(27.55, 49.86, -52.84)
CIE-LCHlch(27.55, 72.65, 313.34°)
OKLaboklab(39.82% 0.0968 -0.1508)
OKLCHoklch(39.82% 0.179 302.7)
XYZxyz(10.1970, 5.2921, 28.4955)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1D94 #55941D
analogous
#211D94 #5C1D94 #941D91
triadic
#5C1D94 #945C1D #1D945C
tetradic
#5C1D94 #94211D #55941D #1D9194
square
#5C1D94 #94211D #55941D #1D9194
split-complementary
#5C1D94 #91941D #1D9421
monochromatic
#1C092E #3C1361 #5C1D94 #7C27C7 #9A4FDC

Accessibility & contrast

On white

10.20
#5C1D94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5C1D94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1D94
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1D94#FFFFFF#000000##FFFFFF
##5C1D941.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004097
Deuteranopia (green-blind)
#004192
Tritanopia (blue-blind)
#503D59
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5c1d94;
/* rgb */ color: rgb(92, 29, 148);
/* oklch */ color: oklch(39.8% 0.179 302.7);
Tailwind
colors: {
  custom: {
    50: '#9061b4',
    500: '#5c1d94',
    950: '#000000',
  },
}
SCSS
$custom: #5c1d94;
$custom-light: #9061b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1d94",
  "rgb": {
    "r": 92,
    "g": 29,
    "b": 148
  },
  "hsl": {
    "h": 271.765,
    "s": 67.232,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39817,
    "c": 0.17923,
    "h": 302.7
  },
  "luminance": 0.05292
}

Semantic roles & 50–950 ramp

primary
#5C1D94
secondary
#83BF4E
accent
#EA3E8F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5C1D94

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

Preview Lab → · Contrast checker → · Palette generator →

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