#5B145A#5B145A

#5B145A is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.4% C 0.133 H 328.6°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#5B145A
RGBrgb(91, 20, 90)
HSLhsl(301, 64%, 22%)
HSVhsv(301, 78%, 36%)
CMYKcmyk(0%, 78%, 1.1%, 64.3%)
CIE-LABlab(21.81, 40.54, -25.05)
CIE-LCHlch(21.81, 47.66, 328.29°)
OKLaboklab(34.35% 0.1136 -0.0693)
OKLCHoklch(34.35% 0.133 328.6)
XYZxyz(6.4099, 3.4631, 10.0017)
Luminance0.0346 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B145A #145B15
analogous
#39145B #5B145A #5B1437
triadic
#5B145A #5A5B14 #145A5B
tetradic
#5B145A #5B3914 #145B15 #14375B
square
#5B145A #5B3914 #145B15 #14375B
split-complementary
#5B145A #375B14 #145B39
monochromatic
#190619 #290928 #5B145A #8D1F8C #BF2ABD

Accessibility & contrast

On white

12.41
#5B145A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#5B145A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B145A
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B145A#FFFFFF#000000##FFFFFF
##5B145A1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082E5C
Deuteranopia (green-blind)
#283758
Tritanopia (blue-blind)
#5E1F36
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5b145a;
/* rgb */ color: rgb(91, 20, 90);
/* oklch */ color: oklch(34.4% 0.133 328.6);
Tailwind
colors: {
  custom: {
    50: '#8c5a89',
    500: '#5b145a',
    950: '#000000',
  },
}
SCSS
$custom: #5b145a;
$custom-light: #8c5a89;
$custom-dark: #000000;
JSON
{
  "hex": "#5b145a",
  "rgb": {
    "r": 91,
    "g": 20,
    "b": 90
  },
  "hsl": {
    "h": 300.845,
    "s": 63.964,
    "l": 21.765
  },
  "oklch": {
    "l": 0.3435,
    "c": 0.13311,
    "h": 328.6
  },
  "luminance": 0.03463
}

Semantic roles & 50–950 ramp

primary
#5B145A
secondary
#389339
accent
#E74341
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5B145A

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

Preview Lab → · Contrast checker → · Palette generator →

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