#5B187C#5B187C

#5B187C is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.2% C 0.160 H 311.3°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#5B187C
RGBrgb(91, 24, 124)
HSLhsl(280, 68%, 29%)
HSVhsv(280, 81%, 49%)
CMYKcmyk(26.6%, 80.6%, 0%, 51.4%)
CIE-LABlab(24.74, 46.02, -42.42)
CIE-LCHlch(24.74, 62.59, 317.33°)
OKLaboklab(37.2% 0.1058 -0.1202)
OKLCHoklch(37.2% 0.16 311.3)
XYZxyz(8.2784, 4.3329, 19.4651)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B187C #397C18
analogous
#29187C #5B187C #7C186B
triadic
#5B187C #7C5B18 #187C5B
tetradic
#5B187C #7C2918 #397C18 #186B7C
square
#5B187C #7C2918 #397C18 #186B7C
split-complementary
#5B187C #6B7C18 #187C29
monochromatic
#13051A #350E49 #5B187C #8122AF #A336D8

Accessibility & contrast

On white

11.25
#5B187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5B187C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B187C
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B187C#FFFFFF#000000##FFFFFF
##5B187C1.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#013C7A
Tritanopia (blue-blind)
#57304A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5b187c;
/* rgb */ color: rgb(91, 24, 124);
/* oklch */ color: oklch(37.2% 0.160 311.3);
Tailwind
colors: {
  custom: {
    50: '#8d5ea3',
    500: '#5b187c',
    950: '#000000',
  },
}
SCSS
$custom: #5b187c;
$custom-light: #8d5ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b187c",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 280.2,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.37197,
    "c": 0.16012,
    "h": 311.3
  },
  "luminance": 0.04333
}

Semantic roles & 50–950 ramp

primary
#5B187C
secondary
#65B13F
accent
#EA3D76
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5B187C

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

Preview Lab → · Contrast checker → · Palette generator →

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