#5B187B#5B187B

#5B187B is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.1% C 0.159 H 311.8°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#5B187B
RGBrgb(91, 24, 123)
HSLhsl(281, 67%, 29%)
HSVhsv(281, 80%, 48%)
CMYKcmyk(26%, 80.5%, 0%, 51.8%)
CIE-LABlab(24.66, 45.80, -41.91)
CIE-LCHlch(24.66, 62.08, 317.54°)
OKLaboklab(37.12% 0.106 -0.1187)
OKLCHoklch(37.12% 0.159 311.8)
XYZxyz(8.2155, 4.3077, 19.1337)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B187B #387B18
analogous
#2A187B #5B187B #7B186A
triadic
#5B187B #7B5B18 #187B5B
tetradic
#5B187B #7B2A18 #387B18 #186A7B
square
#5B187B #7B2A18 #387B18 #186A7B
split-complementary
#5B187B #6A7B18 #187B2A
monochromatic
#13051A #350E48 #5B187B #8122AE #A336D8

Accessibility & contrast

On white

11.28
#5B187B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#5B187B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B187B
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B187B#FFFFFF#000000##FFFFFF
##5B187B1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#043C79
Tritanopia (blue-blind)
#573049
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5b187b;
/* rgb */ color: rgb(91, 24, 123);
/* oklch */ color: oklch(37.1% 0.159 311.8);
Tailwind
colors: {
  custom: {
    50: '#8d5ea2',
    500: '#5b187b',
    950: '#000000',
  },
}
SCSS
$custom: #5b187b;
$custom-light: #8d5ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b187b",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 123
  },
  "hsl": {
    "h": 280.606,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.37117,
    "c": 0.15915,
    "h": 311.8
  },
  "luminance": 0.04307
}

Semantic roles & 50–950 ramp

primary
#5B187B
secondary
#64B03F
accent
#EA3E75
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5B187B

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

Preview Lab → · Contrast checker → · Palette generator →

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