#5B1765#5B1765

#5B1765 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.4% C 0.139 H 322.2°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#5B1765
RGBrgb(91, 23, 101)
HSLhsl(292, 63%, 24%)
HSVhsv(292, 77%, 40%)
CMYKcmyk(9.9%, 77.2%, 0%, 60.4%)
CIE-LABlab(22.92, 41.52, -30.54)
CIE-LCHlch(22.92, 51.54, 323.66°)
OKLaboklab(35.37% 0.1101 -0.0853)
OKLCHoklch(35.37% 0.139 322.2)
XYZxyz(6.9695, 3.7769, 12.6713)
Luminance0.0378 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1765 #216517
analogous
#341765 #5B1765 #651748
triadic
#5B1765 #655B17 #17655B
tetradic
#5B1765 #653417 #216517 #174865
square
#5B1765 #653417 #216517 #174865
split-complementary
#5B1765 #486517 #176534
monochromatic
#160619 #2E0C33 #5B1765 #882297 #B52EC9

Accessibility & contrast

On white

11.96
#5B1765 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#5B1765 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1765
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1765#FFFFFF#000000##FFFFFF
##5B17651.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003267
Deuteranopia (green-blind)
#223963
Tritanopia (blue-blind)
#5C263D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5b1765;
/* rgb */ color: rgb(91, 23, 101);
/* oklch */ color: oklch(35.4% 0.139 322.2);
Tailwind
colors: {
  custom: {
    50: '#8c5c91',
    500: '#5b1765',
    950: '#000000',
  },
}
SCSS
$custom: #5b1765;
$custom-light: #8c5c91;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1765",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 101
  },
  "hsl": {
    "h": 292.308,
    "s": 62.903,
    "l": 24.314
  },
  "oklch": {
    "l": 0.35371,
    "c": 0.13933,
    "h": 322.2
  },
  "luminance": 0.03777
}

Semantic roles & 50–950 ramp

primary
#5B1765
secondary
#499B3C
accent
#E64257
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040D
muted
#7D797D

Preview Lab

Preview with #5B1765

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

Preview Lab → · Contrast checker → · Palette generator →

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