#5B1C9E#5B1C9E

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

Color values

HEX#5B1C9E
RGBrgb(91, 28, 158)
HSLhsl(269, 70%, 36%)
HSVhsv(269, 82%, 62%)
CMYKcmyk(42.4%, 82.3%, 0%, 38%)
CIE-LABlab(28.18, 52.51, -57.95)
CIE-LCHlch(28.18, 78.20, 312.18°)
OKLaboklab(40.5% 0.093 -0.1658)
OKLCHoklch(40.5% 0.19 299.3)
XYZxyz(10.8996, 5.5231, 32.8329)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1C9E #5F9E1C
analogous
#1C1E9E #5B1C9E #9C1C9E
triadic
#5B1C9E #9E5B1C #1C9E5B
tetradic
#5B1C9E #9E1C1E #5F9E1C #1C9E9C
square
#5B1C9E #9E1C1E #5F9E1C #1C9E9C
split-complementary
#5B1C9E #9E9C1C #1E9E1C
monochromatic
#1F0A36 #3D136A #5B1C9E #7925D2 #9854E1

Accessibility & contrast

On white

9.98
#5B1C9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1C9E
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1C9E#FFFFFF#000000##FFFFFF
##5B1C9E1.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b1c9e;
/* rgb */ color: rgb(91, 28, 158);
/* oklch */ color: oklch(40.5% 0.190 299.3);
Tailwind
colors: {
  custom: {
    50: '#9061bc',
    500: '#5b1c9e',
    950: '#000000',
  },
}
SCSS
$custom: #5b1c9e;
$custom-light: #9061bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1c9e",
  "rgb": {
    "r": 91,
    "g": 28,
    "b": 158
  },
  "hsl": {
    "h": 269.077,
    "s": 69.892,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40497,
    "c": 0.19015,
    "h": 299.3
  },
  "luminance": 0.05523
}

Semantic roles & 50–950 ramp

primary
#5B1C9E
secondary
#8DC452
accent
#ED3B97
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #5B1C9E

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

Preview Lab → · Contrast checker → · Palette generator →

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