#5B187A#5B187A

#5B187A is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.0% C 0.158 H 312.2°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#5B187A
RGBrgb(91, 24, 122)
HSLhsl(281, 67%, 29%)
HSVhsv(281, 80%, 48%)
CMYKcmyk(25.4%, 80.3%, 0%, 52.2%)
CIE-LABlab(24.59, 45.58, -41.41)
CIE-LCHlch(24.59, 61.58, 317.75°)
OKLaboklab(37.04% 0.1062 -0.1172)
OKLCHoklch(37.04% 0.158 312.2)
XYZxyz(8.1532, 4.2828, 18.8057)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B187A #377A18
analogous
#2A187A #5B187A #7A1868
triadic
#5B187A #7A5B18 #187A5B
tetradic
#5B187A #7A2A18 #377A18 #18687A
square
#5B187A #7A2A18 #377A18 #18687A
split-complementary
#5B187A #687A18 #187A2A
monochromatic
#13051A #350E47 #5B187A #8122AD #A435D7

Accessibility & contrast

On white

11.31
#5B187A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B187A
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B187A#FFFFFF#000000##FFFFFF
##5B187A1.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#063C78
Tritanopia (blue-blind)
#573049
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5b187a;
/* rgb */ color: rgb(91, 24, 122);
/* oklch */ color: oklch(37.0% 0.158 312.2);
Tailwind
colors: {
  custom: {
    50: '#8d5da1',
    500: '#5b187a',
    950: '#000000',
  },
}
SCSS
$custom: #5b187a;
$custom-light: #8d5da1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b187a",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 122
  },
  "hsl": {
    "h": 281.02,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.37037,
    "c": 0.15818,
    "h": 312.2
  },
  "luminance": 0.04283
}

Semantic roles & 50–950 ramp

primary
#5B187A
secondary
#62AF3F
accent
#EA3E74
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5B187A

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

Preview Lab → · Contrast checker → · Palette generator →

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