#5B0F60#5B0F60

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

Color values

HEX#5B0F60
RGBrgb(91, 15, 96)
HSLhsl(296, 73%, 22%)
HSVhsv(296, 84%, 38%)
CMYKcmyk(5.2%, 84.4%, 0%, 62.4%)
CIE-LABlab(21.62, 43.32, -29.33)
CIE-LCHlch(21.62, 52.32, 325.90°)
OKLaboklab(34.34% 0.1181 -0.0818)
OKLCHoklch(34.34% 0.144 325.3)
XYZxyz(6.5964, 3.4108, 11.3750)
Luminance0.0341 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0F60 #14600F
analogous
#330F60 #5B0F60 #600F3D
triadic
#5B0F60 #605B0F #0F605B
tetradic
#5B0F60 #60330F #14600F #0F3D60
square
#5B0F60 #60330F #14600F #0F3D60
split-complementary
#5B0F60 #3D600F #0F6033
monochromatic
#19041A #29072B #5B0F60 #8D1795 #BF20CA

Accessibility & contrast

On white

12.49
#5B0F60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B0F60
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0F60#FFFFFF#000000##FFFFFF
##5B0F601.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E62
Deuteranopia (green-blind)
#22375E
Tritanopia (blue-blind)
#5D1F38
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5b0f60;
/* rgb */ color: rgb(91, 15, 96);
/* oklch */ color: oklch(34.3% 0.144 325.3);
Tailwind
colors: {
  custom: {
    50: '#8d598d',
    500: '#5b0f60',
    950: '#000000',
  },
}
SCSS
$custom: #5b0f60;
$custom-light: #8d598d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0f60",
  "rgb": {
    "r": 91,
    "g": 15,
    "b": 96
  },
  "hsl": {
    "h": 296.296,
    "s": 72.973,
    "l": 21.765
  },
  "oklch": {
    "l": 0.34339,
    "c": 0.14363,
    "h": 325.3
  },
  "luminance": 0.0341
}

Semantic roles & 50–950 ramp

primary
#5B0F60
secondary
#389932
accent
#F03843
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B0F60

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

Preview Lab → · Contrast checker → · Palette generator →

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