#5B1474#5B1474

#5B1474 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.2% C 0.157 H 315.1°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#5B1474
RGBrgb(91, 20, 116)
HSLhsl(284, 71%, 27%)
HSVhsv(284, 83%, 45%)
CMYKcmyk(21.6%, 82.8%, 0%, 54.5%)
CIE-LABlab(23.62, 45.71, -39.13)
CIE-LCHlch(23.62, 60.17, 319.44°)
OKLaboklab(36.22% 0.111 -0.1105)
OKLCHoklch(36.22% 0.157 315.1)
XYZxyz(7.7164, 3.9857, 16.8825)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1474 #2D7414
analogous
#2B1474 #5B1474 #74145D
triadic
#5B1474 #745B14 #14745B
tetradic
#5B1474 #742B14 #2D7414 #145D74
square
#5B1474 #742B14 #2D7414 #145D74
split-complementary
#5B1474 #5D7414 #14742B
monochromatic
#14051A #320B40 #5B1474 #841DA8 #AC28DA

Accessibility & contrast

On white

11.69
#5B1474 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#5B1474 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1474
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1474#FFFFFF#000000##FFFFFF
##5B14741.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003477
Deuteranopia (green-blind)
#0F3A72
Tritanopia (blue-blind)
#592B44
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5b1474;
/* rgb */ color: rgb(91, 20, 116);
/* oklch */ color: oklch(36.2% 0.157 315.1);
Tailwind
colors: {
  custom: {
    50: '#8d5c9d',
    500: '#5b1474',
    950: '#000000',
  },
}
SCSS
$custom: #5b1474;
$custom-light: #8d5c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1474",
  "rgb": {
    "r": 91,
    "g": 20,
    "b": 116
  },
  "hsl": {
    "h": 284.375,
    "s": 70.588,
    "l": 26.667
  },
  "oklch": {
    "l": 0.36215,
    "c": 0.15659,
    "h": 315.1
  },
  "luminance": 0.03985
}

Semantic roles & 50–950 ramp

primary
#5B1474
secondary
#57AA3A
accent
#ED3A69
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5B1474

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

Preview Lab → · Contrast checker → · Palette generator →

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