#5B1673#5B1673

#5B1673 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.3% C 0.154 H 315.4°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#5B1673
RGBrgb(91, 22, 115)
HSLhsl(285, 68%, 27%)
HSVhsv(285, 81%, 45%)
CMYKcmyk(20.9%, 80.9%, 0%, 54.9%)
CIE-LABlab(23.79, 44.79, -38.22)
CIE-LCHlch(23.79, 58.88, 319.53°)
OKLaboklab(36.31% 0.1094 -0.1078)
OKLCHoklch(36.31% 0.154 315.4)
XYZxyz(7.6953, 4.0361, 16.5900)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1673 #2E7316
analogous
#2D1673 #5B1673 #73165D
triadic
#5B1673 #735B16 #16735B
tetradic
#5B1673 #732D16 #2E7316 #165D73
square
#5B1673 #732D16 #2E7316 #165D73
split-complementary
#5B1673 #5D7316 #16732D
monochromatic
#14051A #320C40 #5B1673 #8420A6 #AB2DD7

Accessibility & contrast

On white

11.62
#5B1673 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#5B1673 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1673
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1673#FFFFFF#000000##FFFFFF
##5B16731.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003576
Deuteranopia (green-blind)
#123A71
Tritanopia (blue-blind)
#592B44
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5b1673;
/* rgb */ color: rgb(91, 22, 115);
/* oklch */ color: oklch(36.3% 0.154 315.4);
Tailwind
colors: {
  custom: {
    50: '#8d5c9c',
    500: '#5b1673',
    950: '#000000',
  },
}
SCSS
$custom: #5b1673;
$custom-light: #8d5c9c;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1673",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 115
  },
  "hsl": {
    "h": 284.516,
    "s": 67.883,
    "l": 26.863
  },
  "oklch": {
    "l": 0.36307,
    "c": 0.15359,
    "h": 315.4
  },
  "luminance": 0.04036
}

Semantic roles & 50–950 ramp

primary
#5B1673
secondary
#58A93C
accent
#EB3D6A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5B1673

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

Preview Lab → · Contrast checker → · Palette generator →

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