#5C1F97#5C1F97

#5C1F97 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.3% C 0.180 H 301.5°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#5C1F97
RGBrgb(92, 31, 151)
HSLhsl(271, 66%, 36%)
HSVhsv(271, 79%, 59%)
CMYKcmyk(39.1%, 79.5%, 0%, 40.8%)
CIE-LABlab(28.09, 49.80, -53.81)
CIE-LCHlch(28.09, 73.32, 312.78°)
OKLaboklab(40.27% 0.0943 -0.1537)
OKLCHoklch(40.27% 0.18 301.5)
XYZxyz(10.4882, 5.4896, 29.7792)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1F97 #5A971F
analogous
#201F97 #5C1F97 #971F96
triadic
#5C1F97 #975C1F #1F975C
tetradic
#5C1F97 #97201F #5A971F #1F9697
square
#5C1F97 #97201F #5A971F #1F9697
split-complementary
#5C1F97 #96971F #1F9720
monochromatic
#1E0A31 #3D1564 #5C1F97 #7B29CA #9954DC

Accessibility & contrast

On white

10.01
#5C1F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5C1F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1F97
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1F97#FFFFFF#000000##FFFFFF
##5C1F971.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#004295
Tritanopia (blue-blind)
#4F3F5B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5c1f97;
/* rgb */ color: rgb(92, 31, 151);
/* oklch */ color: oklch(40.3% 0.180 301.5);
Tailwind
colors: {
  custom: {
    50: '#9062b7',
    500: '#5c1f97',
    950: '#000000',
  },
}
SCSS
$custom: #5c1f97;
$custom-light: #9062b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1f97",
  "rgb": {
    "r": 92,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 270.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40271,
    "c": 0.18032,
    "h": 301.5
  },
  "luminance": 0.0549
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5C1F97

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

Preview Lab → · Contrast checker → · Palette generator →

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