#5B116F#5B116F

#5B116F is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.6% C 0.155 H 317.6°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#5B116F
RGBrgb(91, 17, 111)
HSLhsl(287, 73%, 25%)
HSVhsv(287, 85%, 44%)
CMYKcmyk(18%, 84.7%, 0%, 56.5%)
CIE-LABlab(22.91, 45.64, -37.07)
CIE-LCHlch(22.91, 58.80, 320.92°)
OKLaboklab(35.59% 0.1144 -0.1044)
OKLCHoklch(35.59% 0.155 317.6)
XYZxyz(7.3837, 3.7731, 15.3752)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B116F #256F11
analogous
#2C116F #5B116F #6F1154
triadic
#5B116F #6F5B11 #116F5B
tetradic
#5B116F #6F2C11 #256F11 #11546F
square
#5B116F #6F2C11 #256F11 #11546F
split-complementary
#5B116F #546F11 #116F2C
monochromatic
#16041B #2F093A #5B116F #8719A4 #B221D9

Accessibility & contrast

On white

11.97
#5B116F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B116F
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B116F#FFFFFF#000000##FFFFFF
##5B116F1.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#14396D
Tritanopia (blue-blind)
#5A2741
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5b116f;
/* rgb */ color: rgb(91, 17, 111);
/* oklch */ color: oklch(35.6% 0.155 317.6);
Tailwind
colors: {
  custom: {
    50: '#8d5a99',
    500: '#5b116f',
    950: '#000000',
  },
}
SCSS
$custom: #5b116f;
$custom-light: #8d5a99;
$custom-dark: #000000;
JSON
{
  "hex": "#5b116f",
  "rgb": {
    "r": 91,
    "g": 17,
    "b": 111
  },
  "hsl": {
    "h": 287.234,
    "s": 73.438,
    "l": 25.098
  },
  "oklch": {
    "l": 0.3559,
    "c": 0.15488,
    "h": 317.6
  },
  "luminance": 0.03773
}

Semantic roles & 50–950 ramp

primary
#5B116F
secondary
#4DA635
accent
#F0385F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5B116F

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

Preview Lab → · Contrast checker → · Palette generator →

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