#5B0F5E#5B0F5E

#5B0F5E is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.2% C 0.142 H 326.4°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#5B0F5E
RGBrgb(91, 15, 94)
HSLhsl(298, 72%, 21%)
HSVhsv(298, 84%, 37%)
CMYKcmyk(3.2%, 84%, 0%, 63.1%)
CIE-LABlab(21.48, 42.95, -28.23)
CIE-LCHlch(21.48, 51.40, 326.69°)
OKLaboklab(34.2% 0.1182 -0.0785)
OKLCHoklch(34.2% 0.142 326.4)
XYZxyz(6.5055, 3.3744, 10.8962)
Luminance0.0337 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0F5E #125E0F
analogous
#340F5E #5B0F5E #5E0F3A
triadic
#5B0F5E #5E5B0F #0F5E5B
tetradic
#5B0F5E #5E340F #125E0F #0F3A5E
square
#5B0F5E #5E340F #125E0F #0F3A5E
split-complementary
#5B0F5E #3A5E0F #0F5E34
monochromatic
#1A041A #280729 #5B0F5E #8E1793 #C120C8

Accessibility & contrast

On white

12.54
#5B0F5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#5B0F5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B0F5E
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0F5E#FFFFFF#000000##FFFFFF
##5B0F5E1.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E60
Deuteranopia (green-blind)
#23375C
Tritanopia (blue-blind)
#5E1E37
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5b0f5e;
/* rgb */ color: rgb(91, 15, 94);
/* oklch */ color: oklch(34.2% 0.142 326.4);
Tailwind
colors: {
  custom: {
    50: '#8d588c',
    500: '#5b0f5e',
    950: '#000000',
  },
}
SCSS
$custom: #5b0f5e;
$custom-light: #8d588c;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0f5e",
  "rgb": {
    "r": 91,
    "g": 15,
    "b": 94
  },
  "hsl": {
    "h": 297.722,
    "s": 72.477,
    "l": 21.373
  },
  "oklch": {
    "l": 0.34201,
    "c": 0.14193,
    "h": 326.4
  },
  "luminance": 0.03374
}

Semantic roles & 50–950 ramp

primary
#5B0F5E
secondary
#359731
accent
#EF3940
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B0F5E

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

Preview Lab → · Contrast checker → · Palette generator →

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