#5B0F5D#5B0F5D

#5B0F5D is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.1% C 0.141 H 327.0°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#5B0F5D
RGBrgb(91, 15, 93)
HSLhsl(298, 72%, 21%)
HSVhsv(298, 84%, 36%)
CMYKcmyk(2.2%, 83.9%, 0%, 63.5%)
CIE-LABlab(21.42, 42.77, -27.67)
CIE-LCHlch(21.42, 50.94, 327.10°)
OKLaboklab(34.13% 0.1183 -0.0769)
OKLCHoklch(34.13% 0.141 327)
XYZxyz(6.4609, 3.3566, 10.6614)
Luminance0.0336 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0F5D #115D0F
analogous
#340F5D #5B0F5D #5D0F38
triadic
#5B0F5D #5D5B0F #0F5D5B
tetradic
#5B0F5D #5D340F #115D0F #0F385D
square
#5B0F5D #5D340F #115D0F #0F385D
split-complementary
#5B0F5D #385D0F #0F5D34
monochromatic
#1A041A #270628 #5B0F5D #8F1792 #C220C6

Accessibility & contrast

On white

12.57
#5B0F5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B0F5D
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0F5D#FFFFFF#000000##FFFFFF
##5B0F5D1.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5F
Deuteranopia (green-blind)
#24375B
Tritanopia (blue-blind)
#5E1D36
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5b0f5d;
/* rgb */ color: rgb(91, 15, 93);
/* oklch */ color: oklch(34.1% 0.141 327.0);
Tailwind
colors: {
  custom: {
    50: '#8c588b',
    500: '#5b0f5d',
    950: '#000000',
  },
}
SCSS
$custom: #5b0f5d;
$custom-light: #8c588b;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0f5d",
  "rgb": {
    "r": 91,
    "g": 15,
    "b": 93
  },
  "hsl": {
    "h": 298.462,
    "s": 72.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.34133,
    "c": 0.14109,
    "h": 327
  },
  "luminance": 0.03356
}

Semantic roles & 50–950 ramp

primary
#5B0F5D
secondary
#349631
accent
#EF393E
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B0F5D

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

Preview Lab → · Contrast checker → · Palette generator →

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