#5B104F#5B104F

#5B104F is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.3% C 0.129 H 335.6°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#5B104F
RGBrgb(91, 16, 79)
HSLhsl(310, 70%, 21%)
HSVhsv(310, 82%, 36%)
CMYKcmyk(0%, 82.4%, 13.2%, 64.3%)
CIE-LABlab(20.67, 40.02, -19.46)
CIE-LCHlch(20.67, 44.50, 334.07°)
OKLaboklab(33.32% 0.1172 -0.0531)
OKLCHoklch(33.32% 0.129 335.6)
XYZxyz(5.9110, 3.1598, 7.6942)
Luminance0.0316 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B104F #105B1C
analogous
#41105B #5B104F #5B1029
triadic
#5B104F #4F5B10 #104F5B
tetradic
#5B104F #5B4110 #105B1C #10295B
square
#5B104F #5B4110 #105B1C #10295B
split-complementary
#5B104F #295B10 #105B41
monochromatic
#1A0517 #270722 #5B104F #8F197C #C322A9

Accessibility & contrast

On white

12.87
#5B104F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#5B104F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B104F
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B104F#FFFFFF#000000##FFFFFF
##5B104F1.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102B51
Deuteranopia (green-blind)
#2C364D
Tritanopia (blue-blind)
#60162E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5b104f;
/* rgb */ color: rgb(91, 16, 79);
/* oklch */ color: oklch(33.3% 0.129 335.6);
Tailwind
colors: {
  custom: {
    50: '#8c5880',
    500: '#5b104f',
    950: '#000000',
  },
}
SCSS
$custom: #5b104f;
$custom-light: #8c5880;
$custom-dark: #000000;
JSON
{
  "hex": "#5b104f",
  "rgb": {
    "r": 91,
    "g": 16,
    "b": 79
  },
  "hsl": {
    "h": 309.6,
    "s": 70.093,
    "l": 20.98
  },
  "oklch": {
    "l": 0.33324,
    "c": 0.12871,
    "h": 335.6
  },
  "luminance": 0.03159
}

Semantic roles & 50–950 ramp

primary
#5B104F
secondary
#339442
accent
#ED573B
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B104F

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

Preview Lab → · Contrast checker → · Palette generator →

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