#5B0F55#5B0F55

#5B0F55 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.6% C 0.135 H 331.7°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#5B0F55
RGBrgb(91, 15, 85)
HSLhsl(305, 72%, 21%)
HSVhsv(305, 84%, 36%)
CMYKcmyk(0%, 83.5%, 6.6%, 64.3%)
CIE-LABlab(20.91, 41.35, -23.13)
CIE-LCHlch(20.91, 47.38, 330.78°)
OKLaboklab(33.61% 0.1185 -0.0637)
OKLCHoklch(33.61% 0.135 331.7)
XYZxyz(6.1249, 3.2222, 8.8919)
Luminance0.0322 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0F55 #0F5B15
analogous
#3B0F5B #5B0F55 #5B0F2F
triadic
#5B0F55 #555B0F #0F555B
tetradic
#5B0F55 #5B3B0F #0F5B15 #0F2F5B
square
#5B0F55 #5B3B0F #0F5B15 #0F2F5B
split-complementary
#5B0F55 #2F5B0F #0F5B3B
monochromatic
#1A0419 #260624 #5B0F55 #901886 #C420B7

Accessibility & contrast

On white

12.77
#5B0F55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#5B0F55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B0F55
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0F55#FFFFFF#000000##FFFFFF
##5B0F551.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082C57
Deuteranopia (green-blind)
#293653
Tritanopia (blue-blind)
#5F1932
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5b0f55;
/* rgb */ color: rgb(91, 15, 85);
/* oklch */ color: oklch(33.6% 0.135 331.7);
Tailwind
colors: {
  custom: {
    50: '#8c5885',
    500: '#5b0f55',
    950: '#000000',
  },
}
SCSS
$custom: #5b0f55;
$custom-light: #8c5885;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0f55",
  "rgb": {
    "r": 91,
    "g": 15,
    "b": 85
  },
  "hsl": {
    "h": 304.737,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.33609,
    "c": 0.1345,
    "h": 331.7
  },
  "luminance": 0.03222
}

Semantic roles & 50–950 ramp

primary
#5B0F55
secondary
#319539
accent
#EE4839
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5B0F55

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

Preview Lab → · Contrast checker → · Palette generator →

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