#5B147E#5B147E

#5B147E is a dark, vivid purple. Relative luminance 0.042; OKLCH L 37.0% C 0.166 H 310.9°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#5B147E
RGBrgb(91, 20, 126)
HSLhsl(280, 73%, 29%)
HSVhsv(280, 84%, 49%)
CMYKcmyk(27.8%, 84.1%, 0%, 50.6%)
CIE-LABlab(24.42, 47.86, -44.21)
CIE-LCHlch(24.42, 65.16, 317.27°)
OKLaboklab(37.02% 0.1087 -0.1254)
OKLCHoklch(37.02% 0.166 310.9)
XYZxyz(8.3297, 4.2310, 20.1125)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B147E #377E14
analogous
#26147E #5B147E #7E146C
triadic
#5B147E #7E5B14 #147E5B
tetradic
#5B147E #7E2614 #377E14 #146C7E
square
#5B147E #7E2614 #377E14 #146C7E
split-complementary
#5B147E #6C7E14 #147E26
monochromatic
#13041A #350C49 #5B147E #811CB3 #A42EDE

Accessibility & contrast

On white

11.37
#5B147E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B147E
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B147E#FFFFFF#000000##FFFFFF
##5B147E1.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#003B7C
Tritanopia (blue-blind)
#56304A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5b147e;
/* rgb */ color: rgb(91, 20, 126);
/* oklch */ color: oklch(37.0% 0.166 310.9);
Tailwind
colors: {
  custom: {
    50: '#8e5ca4',
    500: '#5b147e',
    950: '#000000',
  },
}
SCSS
$custom: #5b147e;
$custom-light: #8e5ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b147e",
  "rgb": {
    "r": 91,
    "g": 20,
    "b": 126
  },
  "hsl": {
    "h": 280.189,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.37023,
    "c": 0.16594,
    "h": 310.9
  },
  "luminance": 0.04231
}

Semantic roles & 50–950 ramp

primary
#5B147E
secondary
#62B33A
accent
#EF3875
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5B147E

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

Preview Lab → · Contrast checker → · Palette generator →

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