#5B1361#5B1361

#5B1361 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.7% C 0.140 H 324.6°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#5B1361
RGBrgb(91, 19, 97)
HSLhsl(295, 67%, 23%)
HSVhsv(295, 80%, 38%)
CMYKcmyk(6.2%, 80.4%, 0%, 62%)
CIE-LABlab(22.14, 42.21, -29.17)
CIE-LCHlch(22.14, 51.31, 325.36°)
OKLaboklab(34.73% 0.1144 -0.0813)
OKLCHoklch(34.73% 0.14 324.6)
XYZxyz(6.7048, 3.5534, 11.6397)
Luminance0.0355 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1361 #196113
analogous
#341361 #5B1361 #611340
triadic
#5B1361 #615B13 #13615B
tetradic
#5B1361 #613413 #196113 #134061
square
#5B1361 #613413 #196113 #134061
split-complementary
#5B1361 #406113 #136134
monochromatic
#18051A #2B092E #5B1361 #8B1D94 #BB27C7

Accessibility & contrast

On white

12.28
#5B1361 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5B1361 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1361
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1361#FFFFFF#000000##FFFFFF
##5B13611.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F63
Deuteranopia (green-blind)
#23385F
Tritanopia (blue-blind)
#5D2139
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5b1361;
/* rgb */ color: rgb(91, 19, 97);
/* oklch */ color: oklch(34.7% 0.140 324.6);
Tailwind
colors: {
  custom: {
    50: '#8c5a8e',
    500: '#5b1361',
    950: '#000000',
  },
}
SCSS
$custom: #5b1361;
$custom-light: #8c5a8e;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1361",
  "rgb": {
    "r": 91,
    "g": 19,
    "b": 97
  },
  "hsl": {
    "h": 295.385,
    "s": 67.241,
    "l": 22.745
  },
  "oklch": {
    "l": 0.34728,
    "c": 0.14037,
    "h": 324.6
  },
  "luminance": 0.03553
}

Semantic roles & 50–950 ramp

primary
#5B1361
secondary
#3F9937
accent
#EA3E4B
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B1361

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

Preview Lab → · Contrast checker → · Palette generator →

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