#5B147B#5B147B

#5B147B is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.8% C 0.163 H 312.1°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#5B147B
RGBrgb(91, 20, 123)
HSLhsl(281, 72%, 28%)
HSVhsv(281, 84%, 48%)
CMYKcmyk(26%, 83.7%, 0%, 51.8%)
CIE-LABlab(24.18, 47.21, -42.70)
CIE-LCHlch(24.18, 63.66, 317.87°)
OKLaboklab(36.78% 0.1094 -0.121)
OKLCHoklch(36.78% 0.163 312.1)
XYZxyz(8.1390, 4.1548, 19.1083)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B147B #347B14
analogous
#27147B #5B147B #7B1467
triadic
#5B147B #7B5B14 #147B5B
tetradic
#5B147B #7B2714 #347B14 #14677B
square
#5B147B #7B2714 #347B14 #14677B
split-complementary
#5B147B #677B14 #147B27
monochromatic
#13041A #340B46 #5B147B #821DB0 #A62DDD

Accessibility & contrast

On white

11.47
#5B147B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#5B147B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B147B
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B147B#FFFFFF#000000##FFFFFF
##5B147B1.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#003B79
Tritanopia (blue-blind)
#572E48
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5b147b;
/* rgb */ color: rgb(91, 20, 123);
/* oklch */ color: oklch(36.8% 0.163 312.1);
Tailwind
colors: {
  custom: {
    50: '#8e5ca2',
    500: '#5b147b',
    950: '#000000',
  },
}
SCSS
$custom: #5b147b;
$custom-light: #8e5ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b147b",
  "rgb": {
    "r": 91,
    "g": 20,
    "b": 123
  },
  "hsl": {
    "h": 281.359,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.36776,
    "c": 0.16312,
    "h": 312.1
  },
  "luminance": 0.04155
}

Semantic roles & 50–950 ramp

primary
#5B147B
secondary
#5FB13A
accent
#EF3972
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5B147B

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

Preview Lab → · Contrast checker → · Palette generator →

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