#5B1072#5B1072

#5B1072 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.8% C 0.158 H 316.3°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#5B1072
RGBrgb(91, 16, 114)
HSLhsl(286, 75%, 25%)
HSVhsv(286, 86%, 45%)
CMYKcmyk(20.2%, 86%, 0%, 55.3%)
CIE-LABlab(23.03, 46.56, -38.80)
CIE-LCHlch(23.03, 60.61, 320.20°)
OKLaboklab(35.75% 0.1146 -0.1095)
OKLCHoklch(35.75% 0.158 316.3)
XYZxyz(7.5365, 3.8100, 16.2547)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1072 #277210
analogous
#2A1072 #5B1072 #721058
triadic
#5B1072 #725B10 #10725B
tetradic
#5B1072 #722A10 #277210 #105872
square
#5B1072 #722A10 #277210 #105872
split-complementary
#5B1072 #587210 #10722A
monochromatic
#15041B #30083C #5B1072 #8618A8 #B11FDD

Accessibility & contrast

On white

11.92
#5B1072 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#5B1072 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1072
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1072#FFFFFF#000000##FFFFFF
##5B10721.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003375
Deuteranopia (green-blind)
#0E3970
Tritanopia (blue-blind)
#592842
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5b1072;
/* rgb */ color: rgb(91, 16, 114);
/* oklch */ color: oklch(35.8% 0.158 316.3);
Tailwind
colors: {
  custom: {
    50: '#8d5a9b',
    500: '#5b1072',
    950: '#000000',
  },
}
SCSS
$custom: #5b1072;
$custom-light: #8d5a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1072",
  "rgb": {
    "r": 91,
    "g": 16,
    "b": 114
  },
  "hsl": {
    "h": 285.918,
    "s": 75.385,
    "l": 25.49
  },
  "oklch": {
    "l": 0.35751,
    "c": 0.15847,
    "h": 316.3
  },
  "luminance": 0.0381
}

Semantic roles & 50–950 ramp

primary
#5B1072
secondary
#50A934
accent
#F23662
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5B1072

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

Preview Lab → · Contrast checker → · Palette generator →

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