#5C1E97#5C1E97

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

Color values

HEX#5C1E97
RGBrgb(92, 30, 151)
HSLhsl(271, 67%, 35%)
HSVhsv(271, 80%, 59%)
CMYKcmyk(39.1%, 80.1%, 0%, 40.8%)
CIE-LABlab(27.95, 50.19, -54.04)
CIE-LCHlch(27.95, 73.75, 312.89°)
OKLaboklab(40.17% 0.0952 -0.1543)
OKLCHoklch(40.17% 0.181 301.7)
XYZxyz(10.4625, 5.4382, 29.7706)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1E97 #59971E
analogous
#201E97 #5C1E97 #971E95
triadic
#5C1E97 #975C1E #1E975C
tetradic
#5C1E97 #97201E #59971E #1E9597
square
#5C1E97 #97201E #59971E #1E9597
split-complementary
#5C1E97 #95971E #1E9720
monochromatic
#1E0A31 #3D1464 #5C1E97 #7B28CA #9953DD

Accessibility & contrast

On white

10.06
#5C1E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C1E97
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1E97#FFFFFF#000000##FFFFFF
##5C1E971.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c1e97;
/* rgb */ color: rgb(92, 30, 151);
/* oklch */ color: oklch(40.2% 0.181 301.7);
Tailwind
colors: {
  custom: {
    50: '#9062b7',
    500: '#5c1e97',
    950: '#000000',
  },
}
SCSS
$custom: #5c1e97;
$custom-light: #9062b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1e97",
  "rgb": {
    "r": 92,
    "g": 30,
    "b": 151
  },
  "hsl": {
    "h": 270.744,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40175,
    "c": 0.18132,
    "h": 301.7
  },
  "luminance": 0.05438
}

Semantic roles & 50–950 ramp

primary
#5C1E97
secondary
#87C051
accent
#EA3E92
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5C1E97

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

Preview Lab → · Contrast checker → · Palette generator →

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