#5B1960#5B1960

#5B1960 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.2% C 0.132 H 324.9°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#5B1960
RGBrgb(91, 25, 96)
HSLhsl(296, 59%, 24%)
HSVhsv(296, 74%, 38%)
CMYKcmyk(5.2%, 74%, 0%, 62.4%)
CIE-LABlab(22.88, 39.72, -27.33)
CIE-LCHlch(22.88, 48.22, 325.47°)
OKLaboklab(35.24% 0.1081 -0.076)
OKLCHoklch(35.24% 0.132 324.9)
XYZxyz(6.7732, 3.7644, 11.4339)
Luminance0.0376 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1960 #1E6019
analogous
#371960 #5B1960 #601941
triadic
#5B1960 #605B19 #19605B
tetradic
#5B1960 #603719 #1E6019 #194160
square
#5B1960 #603719 #1E6019 #194160
split-complementary
#5B1960 #416019 #196037
monochromatic
#170618 #2D0C2F #5B1960 #892691 #B732C1

Accessibility & contrast

On white

11.98
#5B1960 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#5B1960 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1960
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1960#FFFFFF#000000##FFFFFF
##5B19601.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#073162
Deuteranopia (green-blind)
#27395E
Tritanopia (blue-blind)
#5D253A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5b1960;
/* rgb */ color: rgb(91, 25, 96);
/* oklch */ color: oklch(35.2% 0.132 324.9);
Tailwind
colors: {
  custom: {
    50: '#8c5d8d',
    500: '#5b1960',
    950: '#000000',
  },
}
SCSS
$custom: #5b1960;
$custom-light: #8c5d8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1960",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 96
  },
  "hsl": {
    "h": 295.775,
    "s": 58.678,
    "l": 23.725
  },
  "oklch": {
    "l": 0.35236,
    "c": 0.13216,
    "h": 324.9
  },
  "luminance": 0.03764
}

Semantic roles & 50–950 ramp

primary
#5B1960
secondary
#45963F
accent
#E24651
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B1960

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

Preview Lab → · Contrast checker → · Palette generator →

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