#5B0F5F#5B0F5F

#5B0F5F is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.3% C 0.143 H 325.9°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#5B0F5F
RGBrgb(91, 15, 95)
HSLhsl(297, 73%, 22%)
HSVhsv(297, 84%, 37%)
CMYKcmyk(4.2%, 84.2%, 0%, 62.7%)
CIE-LABlab(21.55, 43.14, -28.78)
CIE-LCHlch(21.55, 51.86, 326.29°)
OKLaboklab(34.27% 0.1182 -0.0801)
OKLCHoklch(34.27% 0.143 325.9)
XYZxyz(6.5506, 3.3925, 11.1340)
Luminance0.0339 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0F5F #135F0F
analogous
#330F5F #5B0F5F #5F0F3B
triadic
#5B0F5F #5F5B0F #0F5F5B
tetradic
#5B0F5F #5F330F #135F0F #0F3B5F
square
#5B0F5F #5F330F #135F0F #0F3B5F
split-complementary
#5B0F5F #3B5F0F #0F5F33
monochromatic
#19041A #28072A #5B0F5F #8E1794 #C020C9

Accessibility & contrast

On white

12.51
#5B0F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#5B0F5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B0F5F
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0F5F#FFFFFF#000000##FFFFFF
##5B0F5F1.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E61
Deuteranopia (green-blind)
#23375D
Tritanopia (blue-blind)
#5D1E37
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5b0f5f;
/* rgb */ color: rgb(91, 15, 95);
/* oklch */ color: oklch(34.3% 0.143 325.9);
Tailwind
colors: {
  custom: {
    50: '#8d598d',
    500: '#5b0f5f',
    950: '#000000',
  },
}
SCSS
$custom: #5b0f5f;
$custom-light: #8d598d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0f5f",
  "rgb": {
    "r": 91,
    "g": 15,
    "b": 95
  },
  "hsl": {
    "h": 297,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.3427,
    "c": 0.14278,
    "h": 325.9
  },
  "luminance": 0.03392
}

Semantic roles & 50–950 ramp

primary
#5B0F5F
secondary
#379832
accent
#EF3842
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B0F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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