#5B0F5A#5B0F5A

#5B0F5A is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.9% C 0.139 H 328.7°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#5B0F5A
RGBrgb(91, 15, 90)
HSLhsl(301, 72%, 21%)
HSVhsv(301, 84%, 36%)
CMYKcmyk(0%, 83.5%, 1.1%, 64.3%)
CIE-LABlab(21.22, 42.23, -25.98)
CIE-LCHlch(21.22, 49.58, 328.40°)
OKLaboklab(33.93% 0.1184 -0.072)
OKLCHoklch(33.93% 0.139 328.7)
XYZxyz(6.3306, 3.3045, 9.9753)
Luminance0.0330 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0F5A #0F5B10
analogous
#360F5B #5B0F5A #5B0F34
triadic
#5B0F5A #5A5B0F #0F5A5B
tetradic
#5B0F5A #5B360F #0F5B10 #0F345B
square
#5B0F5A #5B360F #0F5B10 #0F345B
split-complementary
#5B0F5A #345B0F #0F5B36
monochromatic
#1A041A #260626 #5B0F5A #90188E #C420C2

Accessibility & contrast

On white

12.64
#5B0F5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#5B0F5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B0F5A
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0F5A#FFFFFF#000000##FFFFFF
##5B0F5A1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5C
Deuteranopia (green-blind)
#263658
Tritanopia (blue-blind)
#5E1C34
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5b0f5a;
/* rgb */ color: rgb(91, 15, 90);
/* oklch */ color: oklch(33.9% 0.139 328.7);
Tailwind
colors: {
  custom: {
    50: '#8c5889',
    500: '#5b0f5a',
    950: '#000000',
  },
}
SCSS
$custom: #5b0f5a;
$custom-light: #8c5889;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0f5a",
  "rgb": {
    "r": 91,
    "g": 15,
    "b": 90
  },
  "hsl": {
    "h": 300.789,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.33932,
    "c": 0.13859,
    "h": 328.7
  },
  "luminance": 0.03304
}

Semantic roles & 50–950 ramp

primary
#5B0F5A
secondary
#319533
accent
#EE3C39
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5B0F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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