#5B0F52#5B0F52

#5B0F52 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.4% C 0.132 H 333.6°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#5B0F52
RGBrgb(91, 15, 82)
HSLhsl(307, 72%, 21%)
HSVhsv(307, 84%, 36%)
CMYKcmyk(0%, 83.5%, 9.9%, 64.3%)
CIE-LABlab(20.73, 40.84, -21.39)
CIE-LCHlch(20.73, 46.11, 332.36°)
OKLaboklab(33.42% 0.1184 -0.0587)
OKLCHoklch(33.42% 0.132 333.6)
XYZxyz(6.0082, 3.1755, 8.2775)
Luminance0.0318 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0F52 #0F5B18
analogous
#3E0F5B #5B0F52 #5B0F2C
triadic
#5B0F52 #525B0F #0F525B
tetradic
#5B0F52 #5B3E0F #0F5B18 #0F2C5B
square
#5B0F52 #5B3E0F #0F5B18 #0F2C5B
split-complementary
#5B0F52 #2C5B0F #0F5B3E
monochromatic
#1A0418 #260623 #5B0F52 #901881 #C420B1

Accessibility & contrast

On white

12.84
#5B0F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B0F52
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0F52#FFFFFF#000000##FFFFFF
##5B0F521.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2B54
Deuteranopia (green-blind)
#2A3650
Tritanopia (blue-blind)
#601730
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5b0f52;
/* rgb */ color: rgb(91, 15, 82);
/* oklch */ color: oklch(33.4% 0.132 333.6);
Tailwind
colors: {
  custom: {
    50: '#8c5883',
    500: '#5b0f52',
    950: '#000000',
  },
}
SCSS
$custom: #5b0f52;
$custom-light: #8c5883;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0f52",
  "rgb": {
    "r": 91,
    "g": 15,
    "b": 82
  },
  "hsl": {
    "h": 307.105,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.33423,
    "c": 0.13212,
    "h": 333.6
  },
  "luminance": 0.03175
}

Semantic roles & 50–950 ramp

primary
#5B0F52
secondary
#31953D
accent
#EE4F39
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B0F52

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

Preview Lab → · Contrast checker → · Palette generator →

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