#5C1B9E#5C1B9E

#5C1B9E is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.5% C 0.191 H 299.9°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#5C1B9E
RGBrgb(92, 27, 158)
HSLhsl(270, 71%, 36%)
HSVhsv(270, 83%, 62%)
CMYKcmyk(41.8%, 82.9%, 0%, 38%)
CIE-LABlab(28.19, 53.02, -57.92)
CIE-LCHlch(28.19, 78.52, 312.47°)
OKLaboklab(40.53% 0.0953 -0.1657)
OKLCHoklch(40.53% 0.191 299.9)
XYZxyz(10.9756, 5.5277, 32.8298)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1B9E #5D9E1B
analogous
#1B1C9E #5C1B9E #9E1B9E
triadic
#5C1B9E #9E5C1B #1B9E5C
tetradic
#5C1B9E #9E1B1C #5D9E1B #1B9E9E
square
#5C1B9E #9E1B1C #5D9E1B #1B9E9E
split-complementary
#5C1B9E #9E9E1B #1C9E1B
monochromatic
#1F0935 #3E126A #5C1B9E #7A24D2 #9952E1

Accessibility & contrast

On white

9.97
#5C1B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5C1B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1B9E
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1B9E#FFFFFF#000000##FFFFFF
##5C1B9E1.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A1
Deuteranopia (green-blind)
#00419C
Tritanopia (blue-blind)
#4C415E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5c1b9e;
/* rgb */ color: rgb(92, 27, 158);
/* oklch */ color: oklch(40.5% 0.191 299.9);
Tailwind
colors: {
  custom: {
    50: '#9161bc',
    500: '#5c1b9e',
    950: '#000000',
  },
}
SCSS
$custom: #5c1b9e;
$custom-light: #9161bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1b9e",
  "rgb": {
    "r": 92,
    "g": 27,
    "b": 158
  },
  "hsl": {
    "h": 269.771,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40534,
    "c": 0.19116,
    "h": 299.9
  },
  "luminance": 0.05528
}

Semantic roles & 50–950 ramp

primary
#5C1B9E
secondary
#8BC451
accent
#EE3A95
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5C1B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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