#5B176F#5B176F

#5B176F is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.1% C 0.149 H 317.2°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#5B176F
RGBrgb(91, 23, 111)
HSLhsl(286, 66%, 26%)
HSVhsv(286, 79%, 44%)
CMYKcmyk(18%, 79.3%, 0%, 56.5%)
CIE-LABlab(23.62, 43.58, -35.91)
CIE-LCHlch(23.62, 56.47, 320.51°)
OKLaboklab(36.09% 0.1091 -0.1011)
OKLCHoklch(36.09% 0.149 317.2)
XYZxyz(7.4896, 3.9850, 15.4105)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B176F #2B6F17
analogous
#2F176F #5B176F #6F1757
triadic
#5B176F #6F5B17 #176F5B
tetradic
#5B176F #6F2F17 #2B6F17 #17576F
square
#5B176F #6F2F17 #2B6F17 #17576F
split-complementary
#5B176F #576F17 #176F2F
monochromatic
#150519 #310C3C #5B176F #8522A2 #AE2DD3

Accessibility & contrast

On white

11.69
#5B176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#5B176F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B176F
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B176F#FFFFFF#000000##FFFFFF
##5B176F1.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003471
Deuteranopia (green-blind)
#193A6D
Tritanopia (blue-blind)
#5A2A42
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5b176f;
/* rgb */ color: rgb(91, 23, 111);
/* oklch */ color: oklch(36.1% 0.149 317.2);
Tailwind
colors: {
  custom: {
    50: '#8d5c99',
    500: '#5b176f',
    950: '#000000',
  },
}
SCSS
$custom: #5b176f;
$custom-light: #8d5c99;
$custom-dark: #000000;
JSON
{
  "hex": "#5b176f",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 286.364,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.36094,
    "c": 0.14871,
    "h": 317.2
  },
  "luminance": 0.03985
}

Semantic roles & 50–950 ramp

primary
#5B176F
secondary
#55A53D
accent
#E93F66
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #5B176F

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

Preview Lab → · Contrast checker → · Palette generator →

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