#5B105E#5B105E

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

Color values

HEX#5B105E
RGBrgb(91, 16, 94)
HSLhsl(298, 71%, 22%)
HSVhsv(298, 83%, 37%)
CMYKcmyk(3.2%, 83%, 0%, 63.1%)
CIE-LABlab(21.59, 42.64, -28.05)
CIE-LCHlch(21.59, 51.05, 326.66°)
OKLaboklab(34.28% 0.1174 -0.078)
OKLCHoklch(34.28% 0.141 326.4)
XYZxyz(6.5199, 3.4033, 10.9010)
Luminance0.0340 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B105E #135E10
analogous
#34105E #5B105E #5E103A
triadic
#5B105E #5E5B10 #105E5B
tetradic
#5B105E #5E3410 #135E10 #103A5E
square
#5B105E #5E3410 #135E10 #103A5E
split-complementary
#5B105E #3A5E10 #105E34
monochromatic
#19041A #28072A #5B105E #8E1992 #C022C7

Accessibility & contrast

On white

12.50
#5B105E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B105E
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B105E#FFFFFF#000000##FFFFFF
##5B105E1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E60
Deuteranopia (green-blind)
#24375C
Tritanopia (blue-blind)
#5E1E37
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5b105e;
/* rgb */ color: rgb(91, 16, 94);
/* oklch */ color: oklch(34.3% 0.141 326.4);
Tailwind
colors: {
  custom: {
    50: '#8c598c',
    500: '#5b105e',
    950: '#000000',
  },
}
SCSS
$custom: #5b105e;
$custom-light: #8c598c;
$custom-dark: #000000;
JSON
{
  "hex": "#5b105e",
  "rgb": {
    "r": 91,
    "g": 16,
    "b": 94
  },
  "hsl": {
    "h": 297.692,
    "s": 70.909,
    "l": 21.569
  },
  "oklch": {
    "l": 0.34277,
    "c": 0.14095,
    "h": 326.4
  },
  "luminance": 0.03403
}

Semantic roles & 50–950 ramp

primary
#5B105E
secondary
#379733
accent
#EE3A41
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B105E

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

Preview Lab → · Contrast checker → · Palette generator →

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