#5B108D#5B108D

#5B108D is a dark, vivid violet. Relative luminance 0.045; OKLCH L 38.0% C 0.183 H 305.7°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#5B108D
RGBrgb(91, 16, 141)
HSLhsl(276, 80%, 31%)
HSVhsv(276, 89%, 55%)
CMYKcmyk(35.5%, 88.7%, 0%, 44.7%)
CIE-LABlab(25.31, 52.37, -52.17)
CIE-LCHlch(25.31, 73.92, 315.11°)
OKLaboklab(38.04% 0.1067 -0.1488)
OKLCHoklch(38.04% 0.183 305.7)
XYZxyz(9.3063, 4.5179, 25.5759)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B108D #428D10
analogous
#1C108D #5B108D #8D1080
triadic
#5B108D #8D5B10 #108D5B
tetradic
#5B108D #8D1C10 #428D10 #10808D
square
#5B108D #8D1C10 #428D10 #10808D
split-complementary
#5B108D #808D10 #108D1C
monochromatic
#14041F #380A56 #5B108D #7E16C4 #9E30E7

Accessibility & contrast

On white

11.03
#5B108D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5B108D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B108D
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B108D#FFFFFF#000000##FFFFFF
##5B108D1.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#003C8B
Tritanopia (blue-blind)
#523552
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5b108d;
/* rgb */ color: rgb(91, 16, 141);
/* oklch */ color: oklch(38.0% 0.183 305.7);
Tailwind
colors: {
  custom: {
    50: '#8f5caf',
    500: '#5b108d',
    950: '#000000',
  },
}
SCSS
$custom: #5b108d;
$custom-light: #8f5caf;
$custom-dark: #000000;
JSON
{
  "hex": "#5b108d",
  "rgb": {
    "r": 91,
    "g": 16,
    "b": 141
  },
  "hsl": {
    "h": 276,
    "s": 79.618,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38044,
    "c": 0.1831,
    "h": 305.7
  },
  "luminance": 0.04518
}

Semantic roles & 50–950 ramp

primary
#5B108D
secondary
#6FC237
accent
#F63280
background
#F9F5FA
surface
#F1E9F5
border
#CBC5CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B108D

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

Preview Lab → · Contrast checker → · Palette generator →

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