#5B1977#5B1977

#5B1977 is a dark, vivid purple. Relative luminance 0.043; OKLCH L 36.9% C 0.154 H 313.4°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#5B1977
RGBrgb(91, 25, 119)
HSLhsl(282, 65%, 28%)
HSVhsv(282, 79%, 47%)
CMYKcmyk(23.5%, 79%, 0%, 53.3%)
CIE-LABlab(24.49, 44.53, -39.65)
CIE-LCHlch(24.49, 59.63, 318.32°)
OKLaboklab(36.89% 0.1059 -0.1121)
OKLCHoklch(36.89% 0.154 313.4)
XYZxyz(7.9912, 4.2516, 17.8489)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1977 #357719
analogous
#2C1977 #5B1977 #771964
triadic
#5B1977 #775B19 #19775B
tetradic
#5B1977 #772C19 #357719 #196477
square
#5B1977 #772C19 #357719 #196477
split-complementary
#5B1977 #647719 #19772C
monochromatic
#130519 #340E44 #5B1977 #8224AA #A536D5

Accessibility & contrast

On white

11.35
#5B1977 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#5B1977 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1977
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1977#FFFFFF#000000##FFFFFF
##5B19771.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377A
Deuteranopia (green-blind)
#0F3C75
Tritanopia (blue-blind)
#582F47
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5b1977;
/* rgb */ color: rgb(91, 25, 119);
/* oklch */ color: oklch(36.9% 0.154 313.4);
Tailwind
colors: {
  custom: {
    50: '#8d5e9f',
    500: '#5b1977',
    950: '#000000',
  },
}
SCSS
$custom: #5b1977;
$custom-light: #8d5e9f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1977",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 119
  },
  "hsl": {
    "h": 282.128,
    "s": 65.278,
    "l": 28.235
  },
  "oklch": {
    "l": 0.36894,
    "c": 0.15416,
    "h": 313.4
  },
  "luminance": 0.04251
}

Semantic roles & 50–950 ramp

primary
#5B1977
secondary
#60AC40
accent
#E84072
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D050E
muted
#7D797E

Preview Lab

Preview with #5B1977

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

Preview Lab → · Contrast checker → · Palette generator →

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