#5B1056#5B1056

#5B1056 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.8% C 0.134 H 331.1°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#5B1056
RGBrgb(91, 16, 86)
HSLhsl(304, 70%, 21%)
HSVhsv(304, 82%, 36%)
CMYKcmyk(0%, 82.4%, 5.5%, 64.3%)
CIE-LABlab(21.08, 41.21, -23.53)
CIE-LCHlch(21.08, 47.45, 330.27°)
OKLaboklab(33.75% 0.1176 -0.0649)
OKLCHoklch(33.75% 0.134 331.1)
XYZxyz(6.1794, 3.2671, 9.1075)
Luminance0.0327 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1056 #105B15
analogous
#3A105B #5B1056 #5B1030
triadic
#5B1056 #565B10 #10565B
tetradic
#5B1056 #5B3A10 #105B15 #10305B
square
#5B1056 #5B3A10 #105B15 #10305B
split-complementary
#5B1056 #305B10 #105B3A
monochromatic
#1A0519 #270725 #5B1056 #8F1987 #C322B8

Accessibility & contrast

On white

12.70
#5B1056 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#5B1056 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1056
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1056#FFFFFF#000000##FFFFFF
##5B10561.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082C58
Deuteranopia (green-blind)
#283654
Tritanopia (blue-blind)
#5F1A32
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5b1056;
/* rgb */ color: rgb(91, 16, 86);
/* oklch */ color: oklch(33.8% 0.134 331.1);
Tailwind
colors: {
  custom: {
    50: '#8c5886',
    500: '#5b1056',
    950: '#000000',
  },
}
SCSS
$custom: #5b1056;
$custom-light: #8c5886;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1056",
  "rgb": {
    "r": 91,
    "g": 16,
    "b": 86
  },
  "hsl": {
    "h": 304,
    "s": 70.093,
    "l": 20.98
  },
  "oklch": {
    "l": 0.33751,
    "c": 0.13427,
    "h": 331.1
  },
  "luminance": 0.03267
}

Semantic roles & 50–950 ramp

primary
#5B1056
secondary
#339439
accent
#ED473B
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5B1056

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

Preview Lab → · Contrast checker → · Palette generator →

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