#5B1467#5B1467

#5B1467 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.2% C 0.145 H 321.3°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#5B1467
RGBrgb(91, 20, 103)
HSLhsl(291, 67%, 24%)
HSVhsv(291, 81%, 40%)
CMYKcmyk(11.7%, 80.6%, 0%, 59.6%)
CIE-LABlab(22.67, 43.03, -32.25)
CIE-LCHlch(22.67, 53.78, 323.15°)
OKLaboklab(35.24% 0.113 -0.0903)
OKLCHoklch(35.24% 0.145 321.3)
XYZxyz(7.0124, 3.7041, 13.1749)
Luminance0.0370 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1467 #206714
analogous
#321467 #5B1467 #67144A
triadic
#5B1467 #675B14 #14675B
tetradic
#5B1467 #673214 #206714 #144A67
square
#5B1467 #673214 #206714 #144A67
split-complementary
#5B1467 #4A6714 #146732
monochromatic
#17051A #2E0A34 #5B1467 #881E9A #B628CD

Accessibility & contrast

On white

12.06
#5B1467 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#5B1467 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1467
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1467#FFFFFF#000000##FFFFFF
##5B14671.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003169
Deuteranopia (green-blind)
#1F3965
Tritanopia (blue-blind)
#5C253D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5b1467;
/* rgb */ color: rgb(91, 20, 103);
/* oklch */ color: oklch(35.2% 0.145 321.3);
Tailwind
colors: {
  custom: {
    50: '#8d5b93',
    500: '#5b1467',
    950: '#000000',
  },
}
SCSS
$custom: #5b1467;
$custom-light: #8d5b93;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1467",
  "rgb": {
    "r": 91,
    "g": 20,
    "b": 103
  },
  "hsl": {
    "h": 291.325,
    "s": 67.48,
    "l": 24.118
  },
  "oklch": {
    "l": 0.35236,
    "c": 0.14463,
    "h": 321.3
  },
  "luminance": 0.03704
}

Semantic roles & 50–950 ramp

primary
#5B1467
secondary
#479E39
accent
#EA3D56
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5B1467

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

Preview Lab → · Contrast checker → · Palette generator →

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