#5B117C#5B117C

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

Color values

HEX#5B117C
RGBrgb(91, 17, 124)
HSLhsl(281, 76%, 28%)
HSVhsv(281, 86%, 49%)
CMYKcmyk(26.6%, 86.3%, 0%, 51.4%)
CIE-LABlab(23.94, 48.37, -43.73)
CIE-LCHlch(23.94, 65.20, 317.88°)
OKLaboklab(36.63% 0.1114 -0.124)
OKLCHoklch(36.63% 0.167 311.9)
XYZxyz(8.1522, 4.0805, 19.4230)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B117C #327C11
analogous
#25117C #5B117C #7C1168
triadic
#5B117C #7C5B11 #117C5B
tetradic
#5B117C #7C2511 #327C11 #11687C
square
#5B117C #7C2511 #327C11 #11687C
split-complementary
#5B117C #687C11 #117C25
monochromatic
#14041B #340A46 #5B117C #8218B2 #A826E1

Accessibility & contrast

On white

11.56
#5B117C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#5B117C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B117C
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B117C#FFFFFF#000000##FFFFFF
##5B117C1.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#003A7A
Tritanopia (blue-blind)
#572D48
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5b117c;
/* rgb */ color: rgb(91, 17, 124);
/* oklch */ color: oklch(36.6% 0.167 311.9);
Tailwind
colors: {
  custom: {
    50: '#8e5ba3',
    500: '#5b117c',
    950: '#000000',
  },
}
SCSS
$custom: #5b117c;
$custom-light: #8e5ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b117c",
  "rgb": {
    "r": 91,
    "g": 17,
    "b": 124
  },
  "hsl": {
    "h": 281.495,
    "s": 75.887,
    "l": 27.647
  },
  "oklch": {
    "l": 0.36633,
    "c": 0.16669,
    "h": 311.9
  },
  "luminance": 0.0408
}

Semantic roles & 50–950 ramp

primary
#5B117C
secondary
#5DB237
accent
#F23570
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5B117C

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

Preview Lab → · Contrast checker → · Palette generator →

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