#5B1860#5B1860

#5B1860 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.1% C 0.133 H 324.9°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#5B1860
RGBrgb(91, 24, 96)
HSLhsl(296, 60%, 24%)
HSVhsv(296, 75%, 38%)
CMYKcmyk(5.2%, 75%, 0%, 62.4%)
CIE-LABlab(22.73, 40.13, -27.56)
CIE-LCHlch(22.73, 48.68, 325.52°)
OKLaboklab(35.13% 0.1093 -0.0767)
OKLCHoklch(35.13% 0.133 324.9)
XYZxyz(6.7522, 3.7224, 11.4269)
Luminance0.0372 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1860 #1D6018
analogous
#371860 #5B1860 #601841
triadic
#5B1860 #605B18 #18605B
tetradic
#5B1860 #603718 #1D6018 #184160
square
#5B1860 #603718 #1D6018 #184160
split-complementary
#5B1860 #416018 #186037
monochromatic
#170618 #2D0C2F #5B1860 #892491 #B830C2

Accessibility & contrast

On white

12.04
#5B1860 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#5B1860 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1860
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1860#FFFFFF#000000##FFFFFF
##5B18601.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053162
Deuteranopia (green-blind)
#26395E
Tritanopia (blue-blind)
#5D243A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5b1860;
/* rgb */ color: rgb(91, 24, 96);
/* oklch */ color: oklch(35.1% 0.133 324.9);
Tailwind
colors: {
  custom: {
    50: '#8c5c8d',
    500: '#5b1860',
    950: '#000000',
  },
}
SCSS
$custom: #5b1860;
$custom-light: #8c5c8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1860",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 96
  },
  "hsl": {
    "h": 295.833,
    "s": 60,
    "l": 23.529
  },
  "oklch": {
    "l": 0.35132,
    "c": 0.13347,
    "h": 324.9
  },
  "luminance": 0.03722
}

Semantic roles & 50–950 ramp

primary
#5B1860
secondary
#44963D
accent
#E34550
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B1860

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

Preview Lab → · Contrast checker → · Palette generator →

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