#5B1970#5B1970

#5B1970 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.4% C 0.147 H 316.5°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#5B1970
RGBrgb(91, 25, 112)
HSLhsl(286, 64%, 27%)
HSVhsv(286, 78%, 44%)
CMYKcmyk(18.7%, 77.7%, 0%, 56.1%)
CIE-LABlab(23.97, 43.01, -36.01)
CIE-LCHlch(23.97, 56.09, 320.07°)
OKLaboklab(36.36% 0.1069 -0.1014)
OKLCHoklch(36.36% 0.147 316.5)
XYZxyz(7.5862, 4.0896, 15.7159)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1970 #2E7019
analogous
#2F1970 #5B1970 #70195A
triadic
#5B1970 #705B19 #19705B
tetradic
#5B1970 #702F19 #2E7019 #195A70
square
#5B1970 #702F19 #2E7019 #195A70
split-complementary
#5B1970 #5A7019 #19702F
monochromatic
#140619 #320E3E #5B1970 #8424A2 #AB32D1

Accessibility & contrast

On white

11.55
#5B1970 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#5B1970 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1970
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1970#FFFFFF#000000##FFFFFF
##5B19701.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003572
Deuteranopia (green-blind)
#193B6E
Tritanopia (blue-blind)
#5A2C43
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5b1970;
/* rgb */ color: rgb(91, 25, 112);
/* oklch */ color: oklch(36.4% 0.147 316.5);
Tailwind
colors: {
  custom: {
    50: '#8d5d9a',
    500: '#5b1970',
    950: '#000000',
  },
}
SCSS
$custom: #5b1970;
$custom-light: #8d5d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1970",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 112
  },
  "hsl": {
    "h": 285.517,
    "s": 63.504,
    "l": 26.863
  },
  "oklch": {
    "l": 0.36361,
    "c": 0.14735,
    "h": 316.5
  },
  "luminance": 0.04089
}

Semantic roles & 50–950 ramp

primary
#5B1970
secondary
#58A540
accent
#E74169
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #5B1970

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

Preview Lab → · Contrast checker → · Palette generator →

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