#5B0D4F#5B0D4F

#5B0D4F is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.1% C 0.132 H 335.5°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#5B0D4F
RGBrgb(91, 13, 79)
HSLhsl(309, 75%, 20%)
HSVhsv(309, 86%, 36%)
CMYKcmyk(0%, 85.7%, 13.2%, 64.3%)
CIE-LABlab(20.35, 40.95, -19.96)
CIE-LCHlch(20.35, 45.56, 334.01°)
OKLaboklab(33.09% 0.12 -0.0546)
OKLCHoklch(33.09% 0.132 335.5)
XYZxyz(5.8697, 3.0771, 7.6804)
Luminance0.0308 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0D4F #0D5B19
analogous
#400D5B #5B0D4F #5B0D28
triadic
#5B0D4F #4F5B0D #0D4F5B
tetradic
#5B0D4F #5B400D #0D5B19 #0D285B
square
#5B0D4F #5B400D #0D5B19 #0D285B
split-complementary
#5B0D4F #285B0D #0D5B40
monochromatic
#1B0417 #250521 #5B0D4F #91157D #C61CAC

Accessibility & contrast

On white

13.00
#5B0D4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#5B0D4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B0D4F
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0D4F#FFFFFF#000000##FFFFFF
##5B0D4F1.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2A51
Deuteranopia (green-blind)
#2B354D
Tritanopia (blue-blind)
#60142E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5b0d4f;
/* rgb */ color: rgb(91, 13, 79);
/* oklch */ color: oklch(33.1% 0.132 335.5);
Tailwind
colors: {
  custom: {
    50: '#8d5780',
    500: '#5b0d4f',
    950: '#000000',
  },
}
SCSS
$custom: #5b0d4f;
$custom-light: #8d5780;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0d4f",
  "rgb": {
    "r": 91,
    "g": 13,
    "b": 79
  },
  "hsl": {
    "h": 309.231,
    "s": 75,
    "l": 20.392
  },
  "oklch": {
    "l": 0.33092,
    "c": 0.13181,
    "h": 335.5
  },
  "luminance": 0.03077
}

Semantic roles & 50–950 ramp

primary
#5B0D4F
secondary
#2F953E
accent
#F25336
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B0D4F

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

Preview Lab → · Contrast checker → · Palette generator →

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