#5B106A#5B106A

#5B106A is a dark, vivid purple. Relative luminance 0.036; OKLCH L 35.1% C 0.151 H 320.1°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#5B106A
RGBrgb(91, 16, 106)
HSLhsl(290, 74%, 24%)
HSVhsv(290, 85%, 42%)
CMYKcmyk(14.2%, 84.9%, 0%, 58.4%)
CIE-LABlab(22.43, 44.95, -34.59)
CIE-LCHlch(22.43, 56.72, 322.41°)
OKLaboklab(35.14% 0.1161 -0.0972)
OKLCHoklch(35.14% 0.151 320.1)
XYZxyz(7.1009, 3.6357, 13.9606)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B106A #1F6A10
analogous
#2E106A #5B106A #6A104C
triadic
#5B106A #6A5B10 #106A5B
tetradic
#5B106A #6A2E10 #1F6A10 #104C6A
square
#5B106A #6A2E10 #1F6A10 #104C6A
split-complementary
#5B106A #4C6A10 #106A2E
monochromatic
#17041B #2D0835 #5B106A #89189F #B620D4

Accessibility & contrast

On white

12.16
#5B106A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#5B106A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B106A
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B106A#FFFFFF#000000##FFFFFF
##5B106A1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316C
Deuteranopia (green-blind)
#1A3868
Tritanopia (blue-blind)
#5B243E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5b106a;
/* rgb */ color: rgb(91, 16, 106);
/* oklch */ color: oklch(35.1% 0.151 320.1);
Tailwind
colors: {
  custom: {
    50: '#8d5995',
    500: '#5b106a',
    950: '#000000',
  },
}
SCSS
$custom: #5b106a;
$custom-light: #8d5995;
$custom-dark: #000000;
JSON
{
  "hex": "#5b106a",
  "rgb": {
    "r": 91,
    "g": 16,
    "b": 106
  },
  "hsl": {
    "h": 290,
    "s": 73.77,
    "l": 23.922
  },
  "oklch": {
    "l": 0.35136,
    "c": 0.15136,
    "h": 320.1
  },
  "luminance": 0.03635
}

Semantic roles & 50–950 ramp

primary
#5B106A
secondary
#46A234
accent
#F03756
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040D
muted
#7D797E

Preview Lab

Preview with #5B106A

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

Preview Lab → · Contrast checker → · Palette generator →

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