#5B1470#5B1470

#5B1470 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.9% C 0.153 H 316.9°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#5B1470
RGBrgb(91, 20, 112)
HSLhsl(286, 70%, 26%)
HSVhsv(286, 82%, 44%)
CMYKcmyk(18.7%, 82.1%, 0%, 56.1%)
CIE-LABlab(23.32, 44.87, -37.05)
CIE-LCHlch(23.32, 58.19, 320.46°)
OKLaboklab(35.9% 0.1117 -0.1044)
OKLCHoklch(35.9% 0.153 316.9)
XYZxyz(7.4887, 3.8946, 15.6834)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1470 #297014
analogous
#2D1470 #5B1470 #701457
triadic
#5B1470 #705B14 #14705B
tetradic
#5B1470 #702D14 #297014 #145770
square
#5B1470 #702D14 #297014 #145770
split-complementary
#5B1470 #577014 #14702D
monochromatic
#15051A #310B3C #5B1470 #851DA4 #AF27D8

Accessibility & contrast

On white

11.81
#5B1470 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#5B1470 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1470
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1470#FFFFFF#000000##FFFFFF
##5B14701.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003372
Deuteranopia (green-blind)
#153A6E
Tritanopia (blue-blind)
#5A2942
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5b1470;
/* rgb */ color: rgb(91, 20, 112);
/* oklch */ color: oklch(35.9% 0.153 316.9);
Tailwind
colors: {
  custom: {
    50: '#8d5b9a',
    500: '#5b1470',
    950: '#000000',
  },
}
SCSS
$custom: #5b1470;
$custom-light: #8d5b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1470",
  "rgb": {
    "r": 91,
    "g": 20,
    "b": 112
  },
  "hsl": {
    "h": 286.304,
    "s": 69.697,
    "l": 25.882
  },
  "oklch": {
    "l": 0.35904,
    "c": 0.15288,
    "h": 316.9
  },
  "luminance": 0.03894
}

Semantic roles & 50–950 ramp

primary
#5B1470
secondary
#52A639
accent
#ED3B64
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5B1470

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

Preview Lab → · Contrast checker → · Palette generator →

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