#5B1076#5B1076

#5B1076 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 36.1% C 0.162 H 314.5°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#5B1076
RGBrgb(91, 16, 118)
HSLhsl(284, 76%, 26%)
HSVhsv(284, 86%, 46%)
CMYKcmyk(22.9%, 86.4%, 0%, 53.7%)
CIE-LABlab(23.35, 47.39, -40.86)
CIE-LCHlch(23.35, 62.57, 319.23°)
OKLaboklab(36.07% 0.1136 -0.1155)
OKLCHoklch(36.07% 0.162 314.5)
XYZxyz(7.7691, 3.9030, 17.4801)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1076 #2B7610
analogous
#281076 #5B1076 #76105E
triadic
#5B1076 #765B10 #10765B
tetradic
#5B1076 #762810 #2B7610 #105E76
square
#5B1076 #762810 #2B7610 #105E76
split-complementary
#5B1076 #5E7610 #107628
monochromatic
#15041B #310940 #5B1076 #8517AC #AE20E1

Accessibility & contrast

On white

11.79
#5B1076 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1076
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1076#FFFFFF#000000##FFFFFF
##5B10761.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003479
Deuteranopia (green-blind)
#053974
Tritanopia (blue-blind)
#582A45
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5b1076;
/* rgb */ color: rgb(91, 16, 118);
/* oklch */ color: oklch(36.1% 0.162 314.5);
Tailwind
colors: {
  custom: {
    50: '#8d5a9e',
    500: '#5b1076',
    950: '#000000',
  },
}
SCSS
$custom: #5b1076;
$custom-light: #8d5a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1076",
  "rgb": {
    "r": 91,
    "g": 16,
    "b": 118
  },
  "hsl": {
    "h": 284.118,
    "s": 76.119,
    "l": 26.275
  },
  "oklch": {
    "l": 0.36071,
    "c": 0.16207,
    "h": 314.5
  },
  "luminance": 0.03903
}

Semantic roles & 50–950 ramp

primary
#5B1076
secondary
#55AD35
accent
#F33567
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5B1076

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

Preview Lab → · Contrast checker → · Palette generator →

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