#5B177F#5B177F

#5B177F is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.164 H 310.2°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#5B177F
RGBrgb(91, 23, 127)
HSLhsl(279, 69%, 29%)
HSVhsv(279, 82%, 50%)
CMYKcmyk(28.3%, 81.9%, 0%, 50.2%)
CIE-LABlab(24.86, 47.06, -44.14)
CIE-LCHlch(24.86, 64.52, 316.83°)
OKLaboklab(37.35% 0.106 -0.1252)
OKLCHoklch(37.35% 0.164 310.2)
XYZxyz(8.4508, 4.3694, 20.4728)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B177F #3B7F17
analogous
#27177F #5B177F #7F176F
triadic
#5B177F #7F5B17 #177F5B
tetradic
#5B177F #7F2717 #3B7F17 #176F7F
square
#5B177F #7F2717 #3B7F17 #176F7F
split-complementary
#5B177F #6F7F17 #177F27
monochromatic
#13051A #360E4B #5B177F #8020B3 #A236DB

Accessibility & contrast

On white

11.21
#5B177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5B177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B177F
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B177F#FFFFFF#000000##FFFFFF
##5B177F1.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#003C7D
Tritanopia (blue-blind)
#56314B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5b177f;
/* rgb */ color: rgb(91, 23, 127);
/* oklch */ color: oklch(37.4% 0.164 310.2);
Tailwind
colors: {
  custom: {
    50: '#8e5da5',
    500: '#5b177f',
    950: '#000000',
  },
}
SCSS
$custom: #5b177f;
$custom-light: #8e5da5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b177f",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 279.231,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.37353,
    "c": 0.16404,
    "h": 310.2
  },
  "luminance": 0.04369
}

Semantic roles & 50–950 ramp

primary
#5B177F
secondary
#67B43E
accent
#EC3C79
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5B177F

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

Preview Lab → · Contrast checker → · Palette generator →

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