#5B105A#5B105A

#5B105A is a dark, vivid purple. Relative luminance 0.033; OKLCH L 34.0% C 0.138 H 328.7°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#5B105A
RGBrgb(91, 16, 90)
HSLhsl(301, 70%, 21%)
HSVhsv(301, 82%, 36%)
CMYKcmyk(0%, 82.4%, 1.1%, 64.3%)
CIE-LABlab(21.33, 41.92, -25.81)
CIE-LCHlch(21.33, 49.22, 328.38°)
OKLaboklab(34.01% 0.1175 -0.0715)
OKLCHoklch(34.01% 0.138 328.7)
XYZxyz(6.3451, 3.3334, 9.9801)
Luminance0.0333 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B105A #105B11
analogous
#36105B #5B105A #5B1034
triadic
#5B105A #5A5B10 #105A5B
tetradic
#5B105A #5B3610 #105B11 #10345B
square
#5B105A #5B3610 #105B11 #10345B
split-complementary
#5B105A #345B10 #105B36
monochromatic
#1A051A #270727 #5B105A #8F198D #C322C1

Accessibility & contrast

On white

12.60
#5B105A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B105A
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B105A#FFFFFF#000000##FFFFFF
##5B105A1.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012D5C
Deuteranopia (green-blind)
#263758
Tritanopia (blue-blind)
#5E1C35
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5b105a;
/* rgb */ color: rgb(91, 16, 90);
/* oklch */ color: oklch(34.0% 0.138 328.7);
Tailwind
colors: {
  custom: {
    50: '#8c5989',
    500: '#5b105a',
    950: '#000000',
  },
}
SCSS
$custom: #5b105a;
$custom-light: #8c5989;
$custom-dark: #000000;
JSON
{
  "hex": "#5b105a",
  "rgb": {
    "r": 91,
    "g": 16,
    "b": 90
  },
  "hsl": {
    "h": 300.8,
    "s": 70.093,
    "l": 20.98
  },
  "oklch": {
    "l": 0.34009,
    "c": 0.13757,
    "h": 328.7
  },
  "luminance": 0.03333
}

Semantic roles & 50–950 ramp

primary
#5B105A
secondary
#339434
accent
#ED3D3B
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5B105A

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

Preview Lab → · Contrast checker → · Palette generator →

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