#5B1972#5B1972

#5B1972 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.5% C 0.149 H 315.6°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#5B1972
RGBrgb(91, 25, 114)
HSLhsl(284, 64%, 27%)
HSVhsv(284, 78%, 45%)
CMYKcmyk(20.2%, 78.1%, 0%, 55.3%)
CIE-LABlab(24.11, 43.44, -37.06)
CIE-LCHlch(24.11, 57.10, 319.54°)
OKLaboklab(36.51% 0.1067 -0.1044)
OKLCHoklch(36.51% 0.149 315.6)
XYZxyz(7.6988, 4.1346, 16.3088)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1972 #307219
analogous
#2E1972 #5B1972 #72195D
triadic
#5B1972 #725B19 #19725B
tetradic
#5B1972 #722E19 #307219 #195D72
square
#5B1972 #722E19 #307219 #195D72
split-complementary
#5B1972 #5D7219 #19722E
monochromatic
#140619 #330E40 #5B1972 #8324A4 #A933D2

Accessibility & contrast

On white

11.50
#5B1972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1972
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1972#FFFFFF#000000##FFFFFF
##5B19721.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003674
Deuteranopia (green-blind)
#173B70
Tritanopia (blue-blind)
#592C44
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5b1972;
/* rgb */ color: rgb(91, 25, 114);
/* oklch */ color: oklch(36.5% 0.149 315.6);
Tailwind
colors: {
  custom: {
    50: '#8d5d9b',
    500: '#5b1972',
    950: '#000000',
  },
}
SCSS
$custom: #5b1972;
$custom-light: #8d5d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1972",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 114
  },
  "hsl": {
    "h": 284.494,
    "s": 64.029,
    "l": 27.255
  },
  "oklch": {
    "l": 0.36511,
    "c": 0.14929,
    "h": 315.6
  },
  "luminance": 0.04134
}

Semantic roles & 50–950 ramp

primary
#5B1972
secondary
#5AA740
accent
#E7416C
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D050E
muted
#7D797E

Preview Lab

Preview with #5B1972

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

Preview Lab → · Contrast checker → · Palette generator →

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