#5B1C8F#5B1C8F

#5B1C8F is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.2% C 0.175 H 303.9°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#5B1C8F
RGBrgb(91, 28, 143)
HSLhsl(273, 67%, 34%)
HSVhsv(273, 80%, 56%)
CMYKcmyk(36.4%, 80.4%, 0%, 43.9%)
CIE-LABlab(26.84, 48.88, -50.92)
CIE-LCHlch(26.84, 70.58, 313.83°)
OKLaboklab(39.16% 0.0976 -0.1452)
OKLCHoklch(39.16% 0.175 303.9)
XYZxyz(9.6864, 5.0378, 26.4434)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1C8F #508F1C
analogous
#221C8F #5B1C8F #8F1C89
triadic
#5B1C8F #8F5B1C #1C8F5B
tetradic
#5B1C8F #8F221C #508F1C #1C898F
square
#5B1C8F #8F221C #508F1C #1C898F
split-complementary
#5B1C8F #898F1C #1C8F22
monochromatic
#1A0829 #3A125C #5B1C8F #7C26C2 #9A4ADC

Accessibility & contrast

On white

10.46
#5B1C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5B1C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1C8F
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1C8F#FFFFFF#000000##FFFFFF
##5B1C8F1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#513B56
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5b1c8f;
/* rgb */ color: rgb(91, 28, 143);
/* oklch */ color: oklch(39.2% 0.175 303.9);
Tailwind
colors: {
  custom: {
    50: '#8f60b1',
    500: '#5b1c8f',
    950: '#000000',
  },
}
SCSS
$custom: #5b1c8f;
$custom-light: #8f60b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1c8f",
  "rgb": {
    "r": 91,
    "g": 28,
    "b": 143
  },
  "hsl": {
    "h": 272.87,
    "s": 67.251,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39158,
    "c": 0.17493,
    "h": 303.9
  },
  "luminance": 0.05038
}

Semantic roles & 50–950 ramp

primary
#5B1C8F
secondary
#7EBE49
accent
#EA3E8C
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5B1C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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