#5B146A#5B146A

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

Color values

HEX#5B146A
RGBrgb(91, 20, 106)
HSLhsl(290, 68%, 25%)
HSVhsv(290, 81%, 42%)
CMYKcmyk(14.2%, 81.1%, 0%, 58.4%)
CIE-LABlab(22.88, 43.64, -33.87)
CIE-LCHlch(22.88, 55.24, 322.18°)
OKLaboklab(35.45% 0.1126 -0.0951)
OKLCHoklch(35.45% 0.147 319.8)
XYZxyz(7.1657, 3.7654, 13.9822)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B146A #236A14
analogous
#30146A #5B146A #6A144E
triadic
#5B146A #6A5B14 #146A5B
tetradic
#5B146A #6A3014 #236A14 #144E6A
square
#5B146A #6A3014 #236A14 #144E6A
split-complementary
#5B146A #4E6A14 #146A30
monochromatic
#16051A #2F0A37 #5B146A #871E9D #B327D1

Accessibility & contrast

On white

11.98
#5B146A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#5B146A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B146A
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B146A#FFFFFF#000000##FFFFFF
##5B146A1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326C
Deuteranopia (green-blind)
#1C3968
Tritanopia (blue-blind)
#5B263F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5b146a;
/* rgb */ color: rgb(91, 20, 106);
/* oklch */ color: oklch(35.5% 0.147 319.8);
Tailwind
colors: {
  custom: {
    50: '#8d5b95',
    500: '#5b146a',
    950: '#000000',
  },
}
SCSS
$custom: #5b146a;
$custom-light: #8d5b95;
$custom-dark: #000000;
JSON
{
  "hex": "#5b146a",
  "rgb": {
    "r": 91,
    "g": 20,
    "b": 106
  },
  "hsl": {
    "h": 289.535,
    "s": 68.254,
    "l": 24.706
  },
  "oklch": {
    "l": 0.35454,
    "c": 0.14736,
    "h": 319.8
  },
  "luminance": 0.03765
}

Semantic roles & 50–950 ramp

primary
#5B146A
secondary
#4BA139
accent
#EB3D5B
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5B146A

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

Preview Lab → · Contrast checker → · Palette generator →

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