#5B1775#5B1775

#5B1775 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.6% C 0.154 H 314.4°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#5B1775
RGBrgb(91, 23, 117)
HSLhsl(283, 67%, 27%)
HSVhsv(283, 80%, 46%)
CMYKcmyk(22.2%, 80.3%, 0%, 54.1%)
CIE-LABlab(24.07, 44.86, -39.05)
CIE-LCHlch(24.07, 59.47, 318.96°)
OKLaboklab(36.55% 0.1081 -0.1103)
OKLCHoklch(36.55% 0.154 314.4)
XYZxyz(7.8311, 4.1216, 17.2092)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1775 #317517
analogous
#2C1775 #5B1775 #751760
triadic
#5B1775 #755B17 #17755B
tetradic
#5B1775 #752C17 #317517 #176075
square
#5B1775 #752C17 #317517 #176075
split-complementary
#5B1775 #607517 #17752C
monochromatic
#14051A #330D42 #5B1775 #8321A8 #A830D6

Accessibility & contrast

On white

11.51
#5B1775 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#5B1775 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1775
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1775#FFFFFF#000000##FFFFFF
##5B17751.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003678
Deuteranopia (green-blind)
#103B73
Tritanopia (blue-blind)
#592D46
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5b1775;
/* rgb */ color: rgb(91, 23, 117);
/* oklch */ color: oklch(36.6% 0.154 314.4);
Tailwind
colors: {
  custom: {
    50: '#8d5d9d',
    500: '#5b1775',
    950: '#000000',
  },
}
SCSS
$custom: #5b1775;
$custom-light: #8d5d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1775",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 117
  },
  "hsl": {
    "h": 283.404,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.36552,
    "c": 0.15443,
    "h": 314.4
  },
  "luminance": 0.04121
}

Semantic roles & 50–950 ramp

primary
#5B1775
secondary
#5CAA3D
accent
#EA3E6D
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D050E
muted
#7D797E

Preview Lab

Preview with #5B1775

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

Preview Lab → · Contrast checker → · Palette generator →

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