#5B117F#5B117F

#5B117F is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.9% C 0.169 H 310.7°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#5B117F
RGBrgb(91, 17, 127)
HSLhsl(280, 76%, 28%)
HSVhsv(280, 87%, 50%)
CMYKcmyk(28.3%, 86.6%, 0%, 50.2%)
CIE-LABlab(24.19, 49.01, -45.23)
CIE-LCHlch(24.19, 66.69, 317.30°)
OKLaboklab(36.89% 0.1106 -0.1284)
OKLCHoklch(36.89% 0.169 310.7)
XYZxyz(8.3448, 4.1576, 20.4375)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B117F #357F11
analogous
#24117F #5B117F #7F116C
triadic
#5B117F #7F5B11 #117F5B
tetradic
#5B117F #7F2411 #357F11 #116C7F
square
#5B117F #7F2411 #357F11 #116C7F
split-complementary
#5B117F #6C7F11 #117F24
monochromatic
#13041B #340A49 #5B117F #8218B5 #A528E2

Accessibility & contrast

On white

11.47
#5B117F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B117F
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B117F#FFFFFF#000000##FFFFFF
##5B117F1.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#003B7D
Tritanopia (blue-blind)
#562F4A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5b117f;
/* rgb */ color: rgb(91, 17, 127);
/* oklch */ color: oklch(36.9% 0.169 310.7);
Tailwind
colors: {
  custom: {
    50: '#8e5ba5',
    500: '#5b117f',
    950: '#000000',
  },
}
SCSS
$custom: #5b117f;
$custom-light: #8e5ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b117f",
  "rgb": {
    "r": 91,
    "g": 17,
    "b": 127
  },
  "hsl": {
    "h": 280.364,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.36885,
    "c": 0.16945,
    "h": 310.7
  },
  "luminance": 0.04157
}

Semantic roles & 50–950 ramp

primary
#5B117F
secondary
#60B537
accent
#F33573
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5B117F

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

Preview Lab → · Contrast checker → · Palette generator →

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