#5B146B#5B146B

#5B146B is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.5% C 0.148 H 319.3°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#5B146B
RGBrgb(91, 20, 107)
HSLhsl(289, 69%, 25%)
HSVhsv(289, 81%, 42%)
CMYKcmyk(15%, 81.3%, 0%, 58%)
CIE-LABlab(22.95, 43.84, -34.40)
CIE-LCHlch(22.95, 55.73, 321.88°)
OKLaboklab(35.53% 0.1125 -0.0966)
OKLCHoklch(35.53% 0.148 319.3)
XYZxyz(7.2180, 3.7864, 14.2577)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B146B #246B14
analogous
#30146B #5B146B #6B144F
triadic
#5B146B #6B5B14 #146B5B
tetradic
#5B146B #6B3014 #246B14 #144F6B
square
#5B146B #6B3014 #246B14 #144F6B
split-complementary
#5B146B #4F6B14 #146B30
monochromatic
#16051A #2F0A37 #5B146B #871E9F #B327D2

Accessibility & contrast

On white

11.95
#5B146B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#5B146B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B146B
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B146B#FFFFFF#000000##FFFFFF
##5B146B1.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326D
Deuteranopia (green-blind)
#1B3969
Tritanopia (blue-blind)
#5B273F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5b146b;
/* rgb */ color: rgb(91, 20, 107);
/* oklch */ color: oklch(35.5% 0.148 319.3);
Tailwind
colors: {
  custom: {
    50: '#8d5b96',
    500: '#5b146b',
    950: '#000000',
  },
}
SCSS
$custom: #5b146b;
$custom-light: #8d5b96;
$custom-dark: #000000;
JSON
{
  "hex": "#5b146b",
  "rgb": {
    "r": 91,
    "g": 20,
    "b": 107
  },
  "hsl": {
    "h": 288.966,
    "s": 68.504,
    "l": 24.902
  },
  "oklch": {
    "l": 0.35528,
    "c": 0.14828,
    "h": 319.3
  },
  "luminance": 0.03786
}

Semantic roles & 50–950 ramp

primary
#5B146B
secondary
#4CA239
accent
#EB3C5D
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5B146B

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

Preview Lab → · Contrast checker → · Palette generator →

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