#5B147A#5B147A

#5B147A is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.7% C 0.162 H 312.5°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#5B147A
RGBrgb(91, 20, 122)
HSLhsl(282, 72%, 28%)
HSVhsv(282, 84%, 48%)
CMYKcmyk(25.4%, 83.6%, 0%, 52.2%)
CIE-LABlab(24.10, 46.99, -42.20)
CIE-LCHlch(24.10, 63.16, 318.08°)
OKLaboklab(36.69% 0.1096 -0.1195)
OKLCHoklch(36.69% 0.162 312.5)
XYZxyz(8.0767, 4.1298, 18.7803)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B147A #337A14
analogous
#28147A #5B147A #7A1466
triadic
#5B147A #7A5B14 #147A5B
tetradic
#5B147A #7A2814 #337A14 #14667A
square
#5B147A #7A2814 #337A14 #14667A
split-complementary
#5B147A #667A14 #147A28
monochromatic
#14041A #340B45 #5B147A #821DAF #A72CDC

Accessibility & contrast

On white

11.50
#5B147A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B147A
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B147A#FFFFFF#000000##FFFFFF
##5B147A1.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b147a;
/* rgb */ color: rgb(91, 20, 122);
/* oklch */ color: oklch(36.7% 0.162 312.5);
Tailwind
colors: {
  custom: {
    50: '#8e5ca1',
    500: '#5b147a',
    950: '#000000',
  },
}
SCSS
$custom: #5b147a;
$custom-light: #8e5ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b147a",
  "rgb": {
    "r": 91,
    "g": 20,
    "b": 122
  },
  "hsl": {
    "h": 281.765,
    "s": 71.831,
    "l": 27.843
  },
  "oklch": {
    "l": 0.36694,
    "c": 0.16219,
    "h": 312.5
  },
  "luminance": 0.0413
}

Semantic roles & 50–950 ramp

primary
#5B147A
secondary
#5EB03A
accent
#EF3970
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5B147A

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

Preview Lab → · Contrast checker → · Palette generator →

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