#5B1460#5B1460

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

Color values

HEX#5B1460
RGBrgb(91, 20, 96)
HSLhsl(296, 66%, 23%)
HSVhsv(296, 79%, 38%)
CMYKcmyk(5.2%, 79.2%, 0%, 62.4%)
CIE-LABlab(22.19, 41.67, -28.42)
CIE-LCHlch(22.19, 50.44, 325.71°)
OKLaboklab(34.75% 0.1135 -0.0791)
OKLCHoklch(34.75% 0.138 325.1)
XYZxyz(6.6757, 3.5694, 11.4014)
Luminance0.0357 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1460 #196014
analogous
#351460 #5B1460 #60143F
triadic
#5B1460 #605B14 #14605B
tetradic
#5B1460 #603514 #196014 #143F60
square
#5B1460 #603514 #196014 #143F60
split-complementary
#5B1460 #3F6014 #146035
monochromatic
#180519 #2B092D #5B1460 #8B1F93 #BB29C5

Accessibility & contrast

On white

12.25
#5B1460 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1460
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1460#FFFFFF#000000##FFFFFF
##5B14601.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003062
Deuteranopia (green-blind)
#24385E
Tritanopia (blue-blind)
#5D2139
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5b1460;
/* rgb */ color: rgb(91, 20, 96);
/* oklch */ color: oklch(34.7% 0.138 325.1);
Tailwind
colors: {
  custom: {
    50: '#8c5a8d',
    500: '#5b1460',
    950: '#000000',
  },
}
SCSS
$custom: #5b1460;
$custom-light: #8c5a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1460",
  "rgb": {
    "r": 91,
    "g": 20,
    "b": 96
  },
  "hsl": {
    "h": 296.053,
    "s": 65.517,
    "l": 22.745
  },
  "oklch": {
    "l": 0.34747,
    "c": 0.13836,
    "h": 325.1
  },
  "luminance": 0.03569
}

Semantic roles & 50–950 ramp

primary
#5B1460
secondary
#3F9838
accent
#E83F4A
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B1460

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

Preview Lab → · Contrast checker → · Palette generator →

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