#5B0F56#5B0F56

#5B0F56 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.7% C 0.135 H 331.1°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#5B0F56
RGBrgb(91, 15, 86)
HSLhsl(304, 72%, 21%)
HSVhsv(304, 84%, 36%)
CMYKcmyk(0%, 83.5%, 5.5%, 64.3%)
CIE-LABlab(20.97, 41.52, -23.70)
CIE-LCHlch(20.97, 47.81, 330.28°)
OKLaboklab(33.67% 0.1185 -0.0654)
OKLCHoklch(33.67% 0.135 331.1)
XYZxyz(6.1649, 3.2382, 9.1026)
Luminance0.0324 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0F56 #0F5B14
analogous
#3A0F5B #5B0F56 #5B0F30
triadic
#5B0F56 #565B0F #0F565B
tetradic
#5B0F56 #5B3A0F #0F5B14 #0F305B
square
#5B0F56 #5B3A0F #0F5B14 #0F305B
split-complementary
#5B0F56 #305B0F #0F5B3A
monochromatic
#1A0419 #260624 #5B0F56 #901888 #C420B9

Accessibility & contrast

On white

12.75
#5B0F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#5B0F56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B0F56
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0F56#FFFFFF#000000##FFFFFF
##5B0F561.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062C58
Deuteranopia (green-blind)
#283654
Tritanopia (blue-blind)
#5F1932
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5b0f56;
/* rgb */ color: rgb(91, 15, 86);
/* oklch */ color: oklch(33.7% 0.135 331.1);
Tailwind
colors: {
  custom: {
    50: '#8c5886',
    500: '#5b0f56',
    950: '#000000',
  },
}
SCSS
$custom: #5b0f56;
$custom-light: #8c5886;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0f56",
  "rgb": {
    "r": 91,
    "g": 15,
    "b": 86
  },
  "hsl": {
    "h": 303.947,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.33672,
    "c": 0.13532,
    "h": 331.1
  },
  "luminance": 0.03238
}

Semantic roles & 50–950 ramp

primary
#5B0F56
secondary
#319538
accent
#EE4539
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5B0F56

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

Preview Lab → · Contrast checker → · Palette generator →

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