#5B1C8E#5B1C8E

#5B1C8E is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.174 H 304.2°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#5B1C8E
RGBrgb(91, 28, 142)
HSLhsl(273, 67%, 33%)
HSVhsv(273, 80%, 56%)
CMYKcmyk(35.9%, 80.3%, 0%, 44.3%)
CIE-LABlab(26.76, 48.65, -50.43)
CIE-LCHlch(26.76, 70.07, 313.97°)
OKLaboklab(39.07% 0.0979 -0.1438)
OKLCHoklch(39.07% 0.174 304.2)
XYZxyz(9.6110, 5.0077, 26.0462)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1C8E #4F8E1C
analogous
#221C8E #5B1C8E #8E1C88
triadic
#5B1C8E #8E5B1C #1C8E5B
tetradic
#5B1C8E #8E221C #4F8E1C #1C888E
square
#5B1C8E #8E221C #4F8E1C #1C888E
split-complementary
#5B1C8E #888E1C #1C8E22
monochromatic
#190828 #3A125B #5B1C8E #7C26C1 #9A49DB

Accessibility & contrast

On white

10.49
#5B1C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5B1C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1C8E
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1C8E#FFFFFF#000000##FFFFFF
##5B1C8E1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#513A55
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5b1c8e;
/* rgb */ color: rgb(91, 28, 142);
/* oklch */ color: oklch(39.1% 0.174 304.2);
Tailwind
colors: {
  custom: {
    50: '#8f60b0',
    500: '#5b1c8e',
    950: '#000000',
  },
}
SCSS
$custom: #5b1c8e;
$custom-light: #8f60b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1c8e",
  "rgb": {
    "r": 91,
    "g": 28,
    "b": 142
  },
  "hsl": {
    "h": 273.158,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.39072,
    "c": 0.17392,
    "h": 304.2
  },
  "luminance": 0.05008
}

Semantic roles & 50–950 ramp

primary
#5B1C8E
secondary
#7DBD49
accent
#EA3E8B
background
#F9F5FA
surface
#F1EAF5
border
#CBC6CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5B1C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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