#5B146E#5B146E

#5B146E is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.8% C 0.151 H 317.9°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#5B146E
RGBrgb(91, 20, 110)
HSLhsl(287, 69%, 25%)
HSVhsv(287, 82%, 43%)
CMYKcmyk(17.3%, 81.8%, 0%, 56.9%)
CIE-LABlab(23.17, 44.45, -35.99)
CIE-LCHlch(23.17, 57.20, 321.00°)
OKLaboklab(35.75% 0.112 -0.1013)
OKLCHoklch(35.75% 0.151 317.9)
XYZxyz(7.3786, 3.8506, 15.1034)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B146E #276E14
analogous
#2E146E #5B146E #6E1454
triadic
#5B146E #6E5B14 #146E5B
tetradic
#5B146E #6E2E14 #276E14 #14546E
square
#5B146E #6E2E14 #276E14 #14546E
split-complementary
#5B146E #546E14 #146E2E
monochromatic
#15051A #300B3A #5B146E #861DA2 #B127D6

Accessibility & contrast

On white

11.86
#5B146E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B146E
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B146E#FFFFFF#000000##FFFFFF
##5B146E1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003370
Deuteranopia (green-blind)
#18396C
Tritanopia (blue-blind)
#5A2841
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5b146e;
/* rgb */ color: rgb(91, 20, 110);
/* oklch */ color: oklch(35.8% 0.151 317.9);
Tailwind
colors: {
  custom: {
    50: '#8d5b98',
    500: '#5b146e',
    950: '#000000',
  },
}
SCSS
$custom: #5b146e;
$custom-light: #8d5b98;
$custom-dark: #000000;
JSON
{
  "hex": "#5b146e",
  "rgb": {
    "r": 91,
    "g": 20,
    "b": 110
  },
  "hsl": {
    "h": 287.333,
    "s": 69.231,
    "l": 25.49
  },
  "oklch": {
    "l": 0.35752,
    "c": 0.15103,
    "h": 317.9
  },
  "luminance": 0.0385
}

Semantic roles & 50–950 ramp

primary
#5B146E
secondary
#50A539
accent
#EC3C61
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5B146E

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

Preview Lab → · Contrast checker → · Palette generator →

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