#5B1874#5B1874

#5B1874 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.6% C 0.152 H 314.8°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#5B1874
RGBrgb(91, 24, 116)
HSLhsl(284, 66%, 27%)
HSVhsv(284, 79%, 45%)
CMYKcmyk(21.6%, 79.3%, 0%, 54.5%)
CIE-LABlab(24.12, 44.26, -38.32)
CIE-LCHlch(24.12, 58.55, 319.12°)
OKLaboklab(36.57% 0.1073 -0.1081)
OKLCHoklch(36.57% 0.152 314.8)
XYZxyz(7.7929, 4.1387, 16.9079)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1874 #317418
analogous
#2D1874 #5B1874 #74185F
triadic
#5B1874 #745B18 #18745B
tetradic
#5B1874 #742D18 #317418 #185F74
square
#5B1874 #742D18 #317418 #185F74
split-complementary
#5B1874 #5F7418 #18742D
monochromatic
#140519 #330E41 #5B1874 #8322A7 #A832D5

Accessibility & contrast

On white

11.49
#5B1874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1874
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1874#FFFFFF#000000##FFFFFF
##5B18741.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003677
Deuteranopia (green-blind)
#133B72
Tritanopia (blue-blind)
#592D45
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5b1874;
/* rgb */ color: rgb(91, 24, 116);
/* oklch */ color: oklch(36.6% 0.152 314.8);
Tailwind
colors: {
  custom: {
    50: '#8d5d9d',
    500: '#5b1874',
    950: '#000000',
  },
}
SCSS
$custom: #5b1874;
$custom-light: #8d5d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1874",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 283.696,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.36567,
    "c": 0.15237,
    "h": 314.8
  },
  "luminance": 0.04138
}

Semantic roles & 50–950 ramp

primary
#5B1874
secondary
#5CA93F
accent
#E93F6D
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D050E
muted
#7D797E

Preview Lab

Preview with #5B1874

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

Preview Lab → · Contrast checker → · Palette generator →

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