#5B146F#5B146F

#5B146F is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.8% C 0.152 H 317.4°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#5B146F
RGBrgb(91, 20, 111)
HSLhsl(287, 69%, 26%)
HSVhsv(287, 82%, 44%)
CMYKcmyk(18%, 82%, 0%, 56.5%)
CIE-LABlab(23.25, 44.66, -36.52)
CIE-LCHlch(23.25, 57.69, 320.73°)
OKLaboklab(35.83% 0.1119 -0.1028)
OKLCHoklch(35.83% 0.152 317.4)
XYZxyz(7.4334, 3.8725, 15.3918)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B146F #286F14
analogous
#2D146F #5B146F #6F1455
triadic
#5B146F #6F5B14 #146F5B
tetradic
#5B146F #6F2D14 #286F14 #14556F
square
#5B146F #6F2D14 #286F14 #14556F
split-complementary
#5B146F #556F14 #146F2D
monochromatic
#15051A #300B3B #5B146F #861DA3 #B027D7

Accessibility & contrast

On white

11.83
#5B146F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#5B146F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B146F
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B146F#FFFFFF#000000##FFFFFF
##5B146F1.0011.831.7711.83
#FFFFFF11.831.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#16396D
Tritanopia (blue-blind)
#5A2941
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5b146f;
/* rgb */ color: rgb(91, 20, 111);
/* oklch */ color: oklch(35.8% 0.152 317.4);
Tailwind
colors: {
  custom: {
    50: '#8d5b99',
    500: '#5b146f',
    950: '#000000',
  },
}
SCSS
$custom: #5b146f;
$custom-light: #8d5b99;
$custom-dark: #000000;
JSON
{
  "hex": "#5b146f",
  "rgb": {
    "r": 91,
    "g": 20,
    "b": 111
  },
  "hsl": {
    "h": 286.813,
    "s": 69.466,
    "l": 25.686
  },
  "oklch": {
    "l": 0.35828,
    "c": 0.15195,
    "h": 317.4
  },
  "luminance": 0.03872
}

Semantic roles & 50–950 ramp

primary
#5B146F
secondary
#51A639
accent
#EC3C62
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5B146F

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

Preview Lab → · Contrast checker → · Palette generator →

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