#5B0F59#5B0F59

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

Color values

HEX#5B0F59
RGBrgb(91, 15, 89)
HSLhsl(302, 72%, 21%)
HSVhsv(302, 84%, 36%)
CMYKcmyk(0%, 83.5%, 2.2%, 64.3%)
CIE-LABlab(21.16, 42.05, -25.41)
CIE-LCHlch(21.16, 49.13, 328.85°)
OKLaboklab(33.87% 0.1185 -0.0703)
OKLCHoklch(33.87% 0.138 329.3)
XYZxyz(6.2883, 3.2876, 9.7526)
Luminance0.0329 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0F59 #0F5B11
analogous
#370F5B #5B0F59 #5B0F33
triadic
#5B0F59 #595B0F #0F595B
tetradic
#5B0F59 #5B370F #0F5B11 #0F335B
square
#5B0F59 #5B370F #0F5B11 #0F335B
split-complementary
#5B0F59 #335B0F #0F5B37
monochromatic
#1A041A #260626 #5B0F59 #90188C #C420C0

Accessibility & contrast

On white

12.67
#5B0F59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B0F59
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0F59#FFFFFF#000000##FFFFFF
##5B0F591.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022C5B
Deuteranopia (green-blind)
#263657
Tritanopia (blue-blind)
#5E1B34
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5b0f59;
/* rgb */ color: rgb(91, 15, 89);
/* oklch */ color: oklch(33.9% 0.138 329.3);
Tailwind
colors: {
  custom: {
    50: '#8c5888',
    500: '#5b0f59',
    950: '#000000',
  },
}
SCSS
$custom: #5b0f59;
$custom-light: #8c5888;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0f59",
  "rgb": {
    "r": 91,
    "g": 15,
    "b": 89
  },
  "hsl": {
    "h": 301.579,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.33866,
    "c": 0.13777,
    "h": 329.3
  },
  "luminance": 0.03287
}

Semantic roles & 50–950 ramp

primary
#5B0F59
secondary
#319534
accent
#EE3E39
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5B0F59

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

Preview Lab → · Contrast checker → · Palette generator →

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