#5B147C#5B147C

#5B147C is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.9% C 0.164 H 311.7°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#5B147C
RGBrgb(91, 20, 124)
HSLhsl(281, 72%, 28%)
HSVhsv(281, 84%, 49%)
CMYKcmyk(26.6%, 83.9%, 0%, 51.4%)
CIE-LABlab(24.26, 47.43, -43.21)
CIE-LCHlch(24.26, 64.16, 317.67°)
OKLaboklab(36.86% 0.1092 -0.1225)
OKLCHoklch(36.86% 0.164 311.7)
XYZxyz(8.2019, 4.1799, 19.4396)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B147C #357C14
analogous
#27147C #5B147C #7C1469
triadic
#5B147C #7C5B14 #147C5B
tetradic
#5B147C #7C2714 #357C14 #14697C
square
#5B147C #7C2714 #357C14 #14697C
split-complementary
#5B147C #697C14 #147C27
monochromatic
#13041A #340B47 #5B147C #821DB1 #A52DDD

Accessibility & contrast

On white

11.44
#5B147C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5B147C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B147C
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B147C#FFFFFF#000000##FFFFFF
##5B147C1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#003B7A
Tritanopia (blue-blind)
#572F49
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5b147c;
/* rgb */ color: rgb(91, 20, 124);
/* oklch */ color: oklch(36.9% 0.164 311.7);
Tailwind
colors: {
  custom: {
    50: '#8e5ca3',
    500: '#5b147c',
    950: '#000000',
  },
}
SCSS
$custom: #5b147c;
$custom-light: #8e5ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b147c",
  "rgb": {
    "r": 91,
    "g": 20,
    "b": 124
  },
  "hsl": {
    "h": 280.962,
    "s": 72.222,
    "l": 28.235
  },
  "oklch": {
    "l": 0.36858,
    "c": 0.16406,
    "h": 311.7
  },
  "luminance": 0.0418
}

Semantic roles & 50–950 ramp

primary
#5B147C
secondary
#60B23A
accent
#EF3973
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5B147C

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

Preview Lab → · Contrast checker → · Palette generator →

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