#5B1973#5B1973

#5B1973 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.6% C 0.150 H 315.1°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#5B1973
RGBrgb(91, 25, 115)
HSLhsl(284, 64%, 27%)
HSVhsv(284, 78%, 45%)
CMYKcmyk(20.9%, 78.3%, 0%, 54.9%)
CIE-LABlab(24.19, 43.66, -37.58)
CIE-LCHlch(24.19, 57.60, 319.28°)
OKLaboklab(36.59% 0.1065 -0.106)
OKLCHoklch(36.59% 0.15 315.1)
XYZxyz(7.7560, 4.1575, 16.6103)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1973 #317319
analogous
#2E1973 #5B1973 #73195E
triadic
#5B1973 #735B19 #19735B
tetradic
#5B1973 #732E19 #317319 #195E73
square
#5B1973 #732E19 #317319 #195E73
split-complementary
#5B1973 #5E7319 #19732E
monochromatic
#140519 #330E41 #5B1973 #8324A5 #A834D3

Accessibility & contrast

On white

11.47
#5B1973 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#5B1973 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1973
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1973#FFFFFF#000000##FFFFFF
##5B19731.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003675
Deuteranopia (green-blind)
#153B71
Tritanopia (blue-blind)
#592D45
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5b1973;
/* rgb */ color: rgb(91, 25, 115);
/* oklch */ color: oklch(36.6% 0.150 315.1);
Tailwind
colors: {
  custom: {
    50: '#8d5e9c',
    500: '#5b1973',
    950: '#000000',
  },
}
SCSS
$custom: #5b1973;
$custom-light: #8d5e9c;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1973",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 115
  },
  "hsl": {
    "h": 284,
    "s": 64.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.36586,
    "c": 0.15026,
    "h": 315.1
  },
  "luminance": 0.04157
}

Semantic roles & 50–950 ramp

primary
#5B1973
secondary
#5CA840
accent
#E7416D
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D050E
muted
#7D797E

Preview Lab

Preview with #5B1973

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

Preview Lab → · Contrast checker → · Palette generator →

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