#5C1D97#5C1D97

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

Color values

HEX#5C1D97
RGBrgb(92, 29, 151)
HSLhsl(271, 68%, 35%)
HSVhsv(271, 81%, 59%)
CMYKcmyk(39.1%, 80.8%, 0%, 40.8%)
CIE-LABlab(27.81, 50.58, -54.26)
CIE-LCHlch(27.81, 74.18, 312.99°)
OKLaboklab(40.08% 0.096 -0.155)
OKLCHoklch(40.08% 0.182 301.8)
XYZxyz(10.4376, 5.3884, 29.7623)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1D97 #58971D
analogous
#1F1D97 #5C1D97 #971D95
triadic
#5C1D97 #975C1D #1D975C
tetradic
#5C1D97 #971F1D #58971D #1D9597
square
#5C1D97 #971F1D #58971D #1D9597
split-complementary
#5C1D97 #95971D #1D971F
monochromatic
#1D0930 #3D1364 #5C1D97 #7B27CA #9A51DE

Accessibility & contrast

On white

10.11
#5C1D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C1D97
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1D97#FFFFFF#000000##FFFFFF
##5C1D971.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c1d97;
/* rgb */ color: rgb(92, 29, 151);
/* oklch */ color: oklch(40.1% 0.182 301.8);
Tailwind
colors: {
  custom: {
    50: '#9061b7',
    500: '#5c1d97',
    950: '#000000',
  },
}
SCSS
$custom: #5c1d97;
$custom-light: #9061b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1d97",
  "rgb": {
    "r": 92,
    "g": 29,
    "b": 151
  },
  "hsl": {
    "h": 270.984,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40081,
    "c": 0.18228,
    "h": 301.8
  },
  "luminance": 0.05388
}

Semantic roles & 50–950 ramp

primary
#5C1D97
secondary
#86C04F
accent
#EB3D91
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5C1D97

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

Preview Lab → · Contrast checker → · Palette generator →

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