#5B1677#5B1677

#5B1677 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.6% C 0.157 H 313.6°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#5B1677
RGBrgb(91, 22, 119)
HSLhsl(283, 69%, 28%)
HSVhsv(283, 82%, 47%)
CMYKcmyk(23.5%, 81.5%, 0%, 53.3%)
CIE-LABlab(24.10, 45.65, -40.28)
CIE-LCHlch(24.10, 60.89, 318.58°)
OKLaboklab(36.62% 0.1086 -0.1139)
OKLCHoklch(36.62% 0.157 313.6)
XYZxyz(7.9305, 4.1301, 17.8286)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1677 #327716
analogous
#2A1677 #5B1677 #771663
triadic
#5B1677 #775B16 #16775B
tetradic
#5B1677 #772A16 #327716 #166377
square
#5B1677 #772A16 #327716 #166377
split-complementary
#5B1677 #637716 #16772A
monochromatic
#14051A #340C43 #5B1677 #8220AB #A82FD9

Accessibility & contrast

On white

11.50
#5B1677 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1677
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1677#FFFFFF#000000##FFFFFF
##5B16771.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367A
Deuteranopia (green-blind)
#0B3B75
Tritanopia (blue-blind)
#582D46
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5b1677;
/* rgb */ color: rgb(91, 22, 119);
/* oklch */ color: oklch(36.6% 0.157 313.6);
Tailwind
colors: {
  custom: {
    50: '#8d5c9f',
    500: '#5b1677',
    950: '#000000',
  },
}
SCSS
$custom: #5b1677;
$custom-light: #8d5c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1677",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 119
  },
  "hsl": {
    "h": 282.68,
    "s": 68.794,
    "l": 27.647
  },
  "oklch": {
    "l": 0.3662,
    "c": 0.15739,
    "h": 313.6
  },
  "luminance": 0.0413
}

Semantic roles & 50–950 ramp

primary
#5B1677
secondary
#5DAC3C
accent
#EC3C6F
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5B1677

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

Preview Lab → · Contrast checker → · Palette generator →

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