#5C1F96#5C1F96

#5C1F96 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.179 H 301.8°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#5C1F96
RGBrgb(92, 31, 150)
HSLhsl(271, 66%, 35%)
HSVhsv(271, 79%, 59%)
CMYKcmyk(38.7%, 79.3%, 0%, 41.2%)
CIE-LABlab(28.00, 49.55, -53.34)
CIE-LCHlch(28.00, 72.80, 312.89°)
OKLaboklab(40.18% 0.0946 -0.1523)
OKLCHoklch(40.18% 0.179 301.8)
XYZxyz(10.4073, 5.4572, 29.3533)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1F96 #59961F
analogous
#201F96 #5C1F96 #961F94
triadic
#5C1F96 #965C1F #1F965C
tetradic
#5C1F96 #96201F #59961F #1F9496
square
#5C1F96 #96201F #59961F #1F9496
split-complementary
#5C1F96 #94961F #1F9620
monochromatic
#1E0A31 #3D1563 #5C1F96 #7B29C9 #9954DC

Accessibility & contrast

On white

10.04
#5C1F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5C1F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1F96
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1F96#FFFFFF#000000##FFFFFF
##5C1F961.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c1f96;
/* rgb */ color: rgb(92, 31, 150);
/* oklch */ color: oklch(40.2% 0.179 301.8);
Tailwind
colors: {
  custom: {
    50: '#9062b6',
    500: '#5c1f96',
    950: '#000000',
  },
}
SCSS
$custom: #5c1f96;
$custom-light: #9062b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1f96",
  "rgb": {
    "r": 92,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 270.756,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40184,
    "c": 0.17929,
    "h": 301.8
  },
  "luminance": 0.05457
}

Semantic roles & 50–950 ramp

primary
#5C1F96
secondary
#87BF52
accent
#E93F92
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5C1F96

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

Preview Lab → · Contrast checker → · Palette generator →

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