#5B147F#5B147F

#5B147F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.167 H 310.5°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#5B147F
RGBrgb(91, 20, 127)
HSLhsl(280, 73%, 29%)
HSVhsv(280, 84%, 50%)
CMYKcmyk(28.3%, 84.3%, 0%, 50.2%)
CIE-LABlab(24.50, 48.08, -44.71)
CIE-LCHlch(24.50, 65.66, 317.08°)
OKLaboklab(37.11% 0.1084 -0.1269)
OKLCHoklch(37.11% 0.167 310.5)
XYZxyz(8.3946, 4.2570, 20.4540)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B147F #387F14
analogous
#26147F #5B147F #7F146E
triadic
#5B147F #7F5B14 #147F5B
tetradic
#5B147F #7F2614 #387F14 #146E7F
square
#5B147F #7F2614 #387F14 #146E7F
split-complementary
#5B147F #6E7F14 #147F26
monochromatic
#13041A #350C4A #5B147F #811CB4 #A32FDE

Accessibility & contrast

On white

11.34
#5B147F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#5B147F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B147F
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B147F#FFFFFF#000000##FFFFFF
##5B147F1.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#003B7D
Tritanopia (blue-blind)
#56304B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5b147f;
/* rgb */ color: rgb(91, 20, 127);
/* oklch */ color: oklch(37.1% 0.167 310.5);
Tailwind
colors: {
  custom: {
    50: '#8e5ca5',
    500: '#5b147f',
    950: '#000000',
  },
}
SCSS
$custom: #5b147f;
$custom-light: #8e5ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b147f",
  "rgb": {
    "r": 91,
    "g": 20,
    "b": 127
  },
  "hsl": {
    "h": 279.813,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.37106,
    "c": 0.16688,
    "h": 310.5
  },
  "luminance": 0.04257
}

Semantic roles & 50–950 ramp

primary
#5B147F
secondary
#64B43B
accent
#EF3876
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5B147F

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

Preview Lab → · Contrast checker → · Palette generator →

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