#5B1174#5B1174

#5B1174 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 36.0% C 0.159 H 315.3°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#5B1174
RGBrgb(91, 17, 116)
HSLhsl(285, 74%, 26%)
HSVhsv(285, 85%, 45%)
CMYKcmyk(21.6%, 85.3%, 0%, 54.5%)
CIE-LABlab(23.29, 46.67, -39.67)
CIE-LCHlch(23.29, 61.25, 319.64°)
OKLaboklab(35.98% 0.1134 -0.1121)
OKLCHoklch(35.98% 0.159 315.3)
XYZxyz(7.6667, 3.8863, 16.8659)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1174 #2A7411
analogous
#291174 #5B1174 #74115B
triadic
#5B1174 #745B11 #11745B
tetradic
#5B1174 #742911 #2A7411 #115B74
square
#5B1174 #742911 #2A7411 #115B74
split-complementary
#5B1174 #5B7411 #117429
monochromatic
#15041B #31093F #5B1174 #8519A9 #AF21DE

Accessibility & contrast

On white

11.82
#5B1174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#5B1174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1174
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1174#FFFFFF#000000##FFFFFF
##5B11741.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003377
Deuteranopia (green-blind)
#0B3972
Tritanopia (blue-blind)
#592A44
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5b1174;
/* rgb */ color: rgb(91, 17, 116);
/* oklch */ color: oklch(36.0% 0.159 315.3);
Tailwind
colors: {
  custom: {
    50: '#8d5a9d',
    500: '#5b1174',
    950: '#000000',
  },
}
SCSS
$custom: #5b1174;
$custom-light: #8d5a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1174",
  "rgb": {
    "r": 91,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 284.848,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.35982,
    "c": 0.1594,
    "h": 315.3
  },
  "luminance": 0.03886
}

Semantic roles & 50–950 ramp

primary
#5B1174
secondary
#53AB36
accent
#F13766
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5B1174

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

Preview Lab → · Contrast checker → · Palette generator →

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