#5B0F50#5B0F50

#5B0F50 is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.3% C 0.131 H 334.9°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#5B0F50
RGBrgb(91, 15, 80)
HSLhsl(309, 72%, 21%)
HSVhsv(309, 84%, 36%)
CMYKcmyk(0%, 83.5%, 12.1%, 64.3%)
CIE-LABlab(20.62, 40.51, -20.22)
CIE-LCHlch(20.62, 45.28, 333.47°)
OKLaboklab(33.3% 0.1183 -0.0553)
OKLCHoklch(33.3% 0.131 334.9)
XYZxyz(5.9333, 3.1455, 7.8825)
Luminance0.0314 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0F50 #0F5B1A
analogous
#400F5B #5B0F50 #5B0F2A
triadic
#5B0F50 #505B0F #0F505B
tetradic
#5B0F50 #5B400F #0F5B1A #0F2A5B
square
#5B0F50 #5B400F #0F5B1A #0F2A5B
split-complementary
#5B0F50 #2A5B0F #0F5B40
monochromatic
#1A0417 #260622 #5B0F50 #90187E #C420AC

Accessibility & contrast

On white

12.89
#5B0F50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B0F50
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0F50#FFFFFF#000000##FFFFFF
##5B0F501.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2B52
Deuteranopia (green-blind)
#2B364E
Tritanopia (blue-blind)
#60162F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5b0f50;
/* rgb */ color: rgb(91, 15, 80);
/* oklch */ color: oklch(33.3% 0.131 334.9);
Tailwind
colors: {
  custom: {
    50: '#8c5881',
    500: '#5b0f50',
    950: '#000000',
  },
}
SCSS
$custom: #5b0f50;
$custom-light: #8c5881;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0f50",
  "rgb": {
    "r": 91,
    "g": 15,
    "b": 80
  },
  "hsl": {
    "h": 308.684,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.33302,
    "c": 0.13056,
    "h": 334.9
  },
  "luminance": 0.03145
}

Semantic roles & 50–950 ramp

primary
#5B0F50
secondary
#319540
accent
#EE5439
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B0F50

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

Preview Lab → · Contrast checker → · Palette generator →

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