#5B147D#5B147D

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

Color values

HEX#5B147D
RGBrgb(91, 20, 125)
HSLhsl(281, 72%, 28%)
HSVhsv(281, 84%, 49%)
CMYKcmyk(27.2%, 84%, 0%, 51%)
CIE-LABlab(24.34, 47.65, -43.71)
CIE-LCHlch(24.34, 64.66, 317.47°)
OKLaboklab(36.94% 0.1089 -0.124)
OKLCHoklch(36.94% 0.165 311.3)
XYZxyz(8.2655, 4.2053, 19.7744)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B147D #367D14
analogous
#26147D #5B147D #7D146A
triadic
#5B147D #7D5B14 #147D5B
tetradic
#5B147D #7D2614 #367D14 #146A7D
square
#5B147D #7D2614 #367D14 #146A7D
split-complementary
#5B147D #6A7D14 #147D26
monochromatic
#13041A #350C48 #5B147D #811CB2 #A52EDE

Accessibility & contrast

On white

11.41
#5B147D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B147D
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B147D#FFFFFF#000000##FFFFFF
##5B147D1.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#003B7B
Tritanopia (blue-blind)
#562F4A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5b147d;
/* rgb */ color: rgb(91, 20, 125);
/* oklch */ color: oklch(36.9% 0.165 311.3);
Tailwind
colors: {
  custom: {
    50: '#8e5ca3',
    500: '#5b147d',
    950: '#000000',
  },
}
SCSS
$custom: #5b147d;
$custom-light: #8e5ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b147d",
  "rgb": {
    "r": 91,
    "g": 20,
    "b": 125
  },
  "hsl": {
    "h": 280.571,
    "s": 72.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3694,
    "c": 0.165,
    "h": 311.3
  },
  "luminance": 0.04205
}

Semantic roles & 50–950 ramp

primary
#5B147D
secondary
#61B23A
accent
#EF3974
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5B147D

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

Preview Lab → · Contrast checker → · Palette generator →

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