#5B105B#5B105B

#5B105B is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.1% C 0.138 H 328.1°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#5B105B
RGBrgb(91, 16, 91)
HSLhsl(300, 70%, 21%)
HSVhsv(300, 82%, 36%)
CMYKcmyk(0%, 82.4%, 0%, 64.3%)
CIE-LABlab(21.40, 42.10, -26.37)
CIE-LCHlch(21.40, 49.68, 327.93°)
OKLaboklab(34.08% 0.1175 -0.0732)
OKLCHoklch(34.08% 0.138 328.1)
XYZxyz(6.3879, 3.3505, 10.2058)
Luminance0.0335 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B105B #105B10
analogous
#35105B #5B105B #5B1035
triadic
#5B105B #5B5B10 #105B5B
tetradic
#5B105B #5B3510 #105B10 #10355B
square
#5B105B #5B3510 #105B10 #10355B
split-complementary
#5B105B #355B10 #105B35
monochromatic
#1A051A #270727 #5B105B #8F198F #C322C3

Accessibility & contrast

On white

12.57
#5B105B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#5B105B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B105B
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B105B#FFFFFF#000000##FFFFFF
##5B105B1.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5D
Deuteranopia (green-blind)
#263759
Tritanopia (blue-blind)
#5E1D35
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5b105b;
/* rgb */ color: rgb(91, 16, 91);
/* oklch */ color: oklch(34.1% 0.138 328.1);
Tailwind
colors: {
  custom: {
    50: '#8c598a',
    500: '#5b105b',
    950: '#000000',
  },
}
SCSS
$custom: #5b105b;
$custom-light: #8c598a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b105b",
  "rgb": {
    "r": 91,
    "g": 16,
    "b": 91
  },
  "hsl": {
    "h": 300,
    "s": 70.093,
    "l": 20.98
  },
  "oklch": {
    "l": 0.34075,
    "c": 0.13842,
    "h": 328.1
  },
  "luminance": 0.0335
}

Semantic roles & 50–950 ramp

primary
#5B105B
secondary
#339433
accent
#ED3B3B
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5B105B

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

Preview Lab → · Contrast checker → · Palette generator →

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