#5B1C91#5B1C91

#5B1C91 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.177 H 303.2°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#5B1C91
RGBrgb(91, 28, 145)
HSLhsl(272, 68%, 34%)
HSVhsv(272, 81%, 57%)
CMYKcmyk(37.2%, 80.7%, 0%, 43.1%)
CIE-LABlab(27.02, 49.36, -51.87)
CIE-LCHlch(27.02, 71.60, 313.58°)
OKLaboklab(39.33% 0.097 -0.148)
OKLCHoklch(39.33% 0.177 303.2)
XYZxyz(9.8393, 5.0990, 27.2484)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1C91 #52911C
analogous
#211C91 #5B1C91 #911C8D
triadic
#5B1C91 #915B1C #1C915B
tetradic
#5B1C91 #91211C #52911C #1C8D91
square
#5B1C91 #91211C #52911C #1C8D91
split-complementary
#5B1C91 #8D911C #1C9121
monochromatic
#1B082A #3B125E #5B1C91 #7B26C4 #994BDC

Accessibility & contrast

On white

10.40
#5B1C91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5B1C91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1C91
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1C91#FFFFFF#000000##FFFFFF
##5B1C911.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F94
Deuteranopia (green-blind)
#00408F
Tritanopia (blue-blind)
#503B57
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5b1c91;
/* rgb */ color: rgb(91, 28, 145);
/* oklch */ color: oklch(39.3% 0.177 303.2);
Tailwind
colors: {
  custom: {
    50: '#8f60b2',
    500: '#5b1c91',
    950: '#000000',
  },
}
SCSS
$custom: #5b1c91;
$custom-light: #8f60b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1c91",
  "rgb": {
    "r": 91,
    "g": 28,
    "b": 145
  },
  "hsl": {
    "h": 272.308,
    "s": 67.63,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39332,
    "c": 0.17696,
    "h": 303.2
  },
  "luminance": 0.05099
}

Semantic roles & 50–950 ramp

primary
#5B1C91
secondary
#80BE4A
accent
#EB3D8D
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5B1C91

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

Preview Lab → · Contrast checker → · Palette generator →

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