#5B0F51#5B0F51

#5B0F51 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.4% C 0.131 H 334.3°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#5B0F51
RGBrgb(91, 15, 81)
HSLhsl(308, 72%, 21%)
HSVhsv(308, 84%, 36%)
CMYKcmyk(0%, 83.5%, 11%, 64.3%)
CIE-LABlab(20.68, 40.68, -20.81)
CIE-LCHlch(20.68, 45.69, 332.91°)
OKLaboklab(33.36% 0.1183 -0.057)
OKLCHoklch(33.36% 0.131 334.3)
XYZxyz(5.9705, 3.1604, 8.0786)
Luminance0.0316 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0F51 #0F5B19
analogous
#3F0F5B #5B0F51 #5B0F2B
triadic
#5B0F51 #515B0F #0F515B
tetradic
#5B0F51 #5B3F0F #0F5B19 #0F2B5B
square
#5B0F51 #5B3F0F #0F5B19 #0F2B5B
split-complementary
#5B0F51 #2B5B0F #0F5B3F
monochromatic
#1A0417 #260622 #5B0F51 #901880 #C420AF

Accessibility & contrast

On white

12.87
#5B0F51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#5B0F51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B0F51
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0F51#FFFFFF#000000##FFFFFF
##5B0F511.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2B53
Deuteranopia (green-blind)
#2B364F
Tritanopia (blue-blind)
#60172F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5b0f51;
/* rgb */ color: rgb(91, 15, 81);
/* oklch */ color: oklch(33.4% 0.131 334.3);
Tailwind
colors: {
  custom: {
    50: '#8c5882',
    500: '#5b0f51',
    950: '#000000',
  },
}
SCSS
$custom: #5b0f51;
$custom-light: #8c5882;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0f51",
  "rgb": {
    "r": 91,
    "g": 15,
    "b": 81
  },
  "hsl": {
    "h": 307.895,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.33362,
    "c": 0.13133,
    "h": 334.3
  },
  "luminance": 0.0316
}

Semantic roles & 50–950 ramp

primary
#5B0F51
secondary
#31953E
accent
#EE5139
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B0F51

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

Preview Lab → · Contrast checker → · Palette generator →

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