#5B117E#5B117E

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

Color values

HEX#5B117E
RGBrgb(91, 17, 126)
HSLhsl(281, 76%, 28%)
HSVhsv(281, 87%, 49%)
CMYKcmyk(27.8%, 86.5%, 0%, 50.6%)
CIE-LABlab(24.10, 48.80, -44.73)
CIE-LCHlch(24.10, 66.20, 317.49°)
OKLaboklab(36.8% 0.1109 -0.1269)
OKLCHoklch(36.8% 0.169 311.1)
XYZxyz(8.2800, 4.1316, 20.0959)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B117E #347E11
analogous
#24117E #5B117E #7E116A
triadic
#5B117E #7E5B11 #117E5B
tetradic
#5B117E #7E2411 #347E11 #116A7E
square
#5B117E #7E2411 #347E11 #116A7E
split-complementary
#5B117E #6A7E11 #117E24
monochromatic
#13041B #340A48 #5B117E #8218B4 #A627E2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B117E#FFFFFF#000000##FFFFFF
##5B117E1.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)
#003681
Deuteranopia (green-blind)
#003A7C
Tritanopia (blue-blind)
#562E4A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5b117e;
/* rgb */ color: rgb(91, 17, 126);
/* oklch */ color: oklch(36.8% 0.169 311.1);
Tailwind
colors: {
  custom: {
    50: '#8e5ba4',
    500: '#5b117e',
    950: '#000000',
  },
}
SCSS
$custom: #5b117e;
$custom-light: #8e5ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b117e",
  "rgb": {
    "r": 91,
    "g": 17,
    "b": 126
  },
  "hsl": {
    "h": 280.734,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.368,
    "c": 0.16853,
    "h": 311.1
  },
  "luminance": 0.04131
}

Semantic roles & 50–950 ramp

primary
#5B117E
secondary
#5FB437
accent
#F33572
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5B117E

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

Preview Lab → · Contrast checker → · Palette generator →

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