#5B0F5C#5B0F5C

#5B0F5C is a dark, vivid purple. Relative luminance 0.033; OKLCH L 34.1% C 0.140 H 327.5°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#5B0F5C
RGBrgb(91, 15, 92)
HSLhsl(299, 72%, 21%)
HSVhsv(299, 84%, 36%)
CMYKcmyk(1.1%, 83.7%, 0%, 63.9%)
CIE-LABlab(21.35, 42.59, -27.11)
CIE-LCHlch(21.35, 50.48, 327.52°)
OKLaboklab(34.07% 0.1183 -0.0753)
OKLCHoklch(34.07% 0.14 327.5)
XYZxyz(6.4169, 3.3390, 10.4297)
Luminance0.0334 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0F5C #105C0F
analogous
#340F5C #5B0F5C #5C0F36
triadic
#5B0F5C #5C5B0F #0F5C5B
tetradic
#5B0F5C #5C340F #105C0F #0F365C
square
#5B0F5C #5C340F #105C0F #0F365C
split-complementary
#5B0F5C #365C0F #0F5C34
monochromatic
#1A041A #270627 #5B0F5C #8F1891 #C320C5

Accessibility & contrast

On white

12.59
#5B0F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B0F5C
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0F5C#FFFFFF#000000##FFFFFF
##5B0F5C1.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5E
Deuteranopia (green-blind)
#25375A
Tritanopia (blue-blind)
#5E1D36
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5b0f5c;
/* rgb */ color: rgb(91, 15, 92);
/* oklch */ color: oklch(34.1% 0.140 327.5);
Tailwind
colors: {
  custom: {
    50: '#8c588a',
    500: '#5b0f5c',
    950: '#000000',
  },
}
SCSS
$custom: #5b0f5c;
$custom-light: #8c588a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0f5c",
  "rgb": {
    "r": 91,
    "g": 15,
    "b": 92
  },
  "hsl": {
    "h": 299.221,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.34065,
    "c": 0.14025,
    "h": 327.5
  },
  "luminance": 0.03339
}

Semantic roles & 50–950 ramp

primary
#5B0F5C
secondary
#339531
accent
#EF393B
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B0F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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