#5B0F54#5B0F54

#5B0F54 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.5% C 0.134 H 332.3°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#5B0F54
RGBrgb(91, 15, 84)
HSLhsl(306, 72%, 21%)
HSVhsv(306, 84%, 36%)
CMYKcmyk(0%, 83.5%, 7.7%, 64.3%)
CIE-LABlab(20.85, 41.18, -22.55)
CIE-LCHlch(20.85, 46.95, 331.29°)
OKLaboklab(33.55% 0.1184 -0.0621)
OKLCHoklch(33.55% 0.134 332.3)
XYZxyz(6.0855, 3.2064, 8.6842)
Luminance0.0321 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0F54 #0F5B16
analogous
#3C0F5B #5B0F54 #5B0F2E
triadic
#5B0F54 #545B0F #0F545B
tetradic
#5B0F54 #5B3C0F #0F5B16 #0F2E5B
square
#5B0F54 #5B3C0F #0F5B16 #0F2E5B
split-complementary
#5B0F54 #2E5B0F #0F5B3C
monochromatic
#1A0418 #260624 #5B0F54 #901884 #C420B5

Accessibility & contrast

On white

12.80
#5B0F54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#5B0F54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B0F54
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0F54#FFFFFF#000000##FFFFFF
##5B0F541.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092B56
Deuteranopia (green-blind)
#293652
Tritanopia (blue-blind)
#5F1831
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5b0f54;
/* rgb */ color: rgb(91, 15, 84);
/* oklch */ color: oklch(33.5% 0.134 332.3);
Tailwind
colors: {
  custom: {
    50: '#8c5884',
    500: '#5b0f54',
    950: '#000000',
  },
}
SCSS
$custom: #5b0f54;
$custom-light: #8c5884;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0f54",
  "rgb": {
    "r": 91,
    "g": 15,
    "b": 84
  },
  "hsl": {
    "h": 305.526,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.33546,
    "c": 0.13371,
    "h": 332.3
  },
  "luminance": 0.03206
}

Semantic roles & 50–950 ramp

primary
#5B0F54
secondary
#31953A
accent
#EE4A39
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5B0F54

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

Preview Lab → · Contrast checker → · Palette generator →

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