#5C1D96#5C1D96

#5C1D96 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.0% C 0.181 H 302.1°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#5C1D96
RGBrgb(92, 29, 150)
HSLhsl(271, 68%, 35%)
HSVhsv(271, 81%, 59%)
CMYKcmyk(38.7%, 80.7%, 0%, 41.2%)
CIE-LABlab(27.73, 50.34, -53.79)
CIE-LCHlch(27.73, 73.67, 313.11°)
OKLaboklab(39.99% 0.0963 -0.1536)
OKLCHoklch(39.99% 0.181 302.1)
XYZxyz(10.3567, 5.3560, 29.3364)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1D96 #57961D
analogous
#201D96 #5C1D96 #961D93
triadic
#5C1D96 #965C1D #1D965C
tetradic
#5C1D96 #96201D #57961D #1D9396
square
#5C1D96 #96201D #57961D #1D9396
split-complementary
#5C1D96 #93961D #1D9620
monochromatic
#1D092F #3D1363 #5C1D96 #7B27C9 #9A50DD

Accessibility & contrast

On white

10.14
#5C1D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C1D96
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1D96#FFFFFF#000000##FFFFFF
##5C1D961.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004199
Deuteranopia (green-blind)
#004194
Tritanopia (blue-blind)
#4F3E5A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5c1d96;
/* rgb */ color: rgb(92, 29, 150);
/* oklch */ color: oklch(40.0% 0.181 302.1);
Tailwind
colors: {
  custom: {
    50: '#9061b6',
    500: '#5c1d96',
    950: '#000000',
  },
}
SCSS
$custom: #5c1d96;
$custom-light: #9061b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1d96",
  "rgb": {
    "r": 92,
    "g": 29,
    "b": 150
  },
  "hsl": {
    "h": 271.24,
    "s": 67.598,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39993,
    "c": 0.18127,
    "h": 302.1
  },
  "luminance": 0.05356
}

Semantic roles & 50–950 ramp

primary
#5C1D96
secondary
#85C04F
accent
#EA3D90
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5C1D96

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

Preview Lab → · Contrast checker → · Palette generator →

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