#5B105F#5B105F

#5B105F is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.3% C 0.142 H 325.8°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#5B105F
RGBrgb(91, 16, 95)
HSLhsl(297, 71%, 22%)
HSVhsv(297, 83%, 37%)
CMYKcmyk(4.2%, 83.2%, 0%, 62.7%)
CIE-LABlab(21.66, 42.83, -28.61)
CIE-LCHlch(21.66, 51.51, 326.26°)
OKLaboklab(34.35% 0.1173 -0.0797)
OKLCHoklch(34.35% 0.142 325.8)
XYZxyz(6.5651, 3.4214, 11.1389)
Luminance0.0342 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B105F #145F10
analogous
#34105F #5B105F #5F103C
triadic
#5B105F #5F5B10 #105F5B
tetradic
#5B105F #5F3410 #145F10 #103C5F
square
#5B105F #5F3410 #145F10 #103C5F
split-complementary
#5B105F #3C5F10 #105F34
monochromatic
#19041A #29072B #5B105F #8D1993 #BF22C8

Accessibility & contrast

On white

12.47
#5B105F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#5B105F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B105F
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B105F#FFFFFF#000000##FFFFFF
##5B105F1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E61
Deuteranopia (green-blind)
#23375D
Tritanopia (blue-blind)
#5D1F37
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5b105f;
/* rgb */ color: rgb(91, 16, 95);
/* oklch */ color: oklch(34.3% 0.142 325.8);
Tailwind
colors: {
  custom: {
    50: '#8c598d',
    500: '#5b105f',
    950: '#000000',
  },
}
SCSS
$custom: #5b105f;
$custom-light: #8c598d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b105f",
  "rgb": {
    "r": 91,
    "g": 16,
    "b": 95
  },
  "hsl": {
    "h": 296.962,
    "s": 71.171,
    "l": 21.765
  },
  "oklch": {
    "l": 0.34345,
    "c": 0.14179,
    "h": 325.8
  },
  "luminance": 0.03421
}

Semantic roles & 50–950 ramp

primary
#5B105F
secondary
#389833
accent
#EE3A43
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B105F

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

Preview Lab → · Contrast checker → · Palette generator →

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