#5B1967#5B1967

#5B1967 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.7% C 0.139 H 321.0°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#5B1967
RGBrgb(91, 25, 103)
HSLhsl(291, 61%, 25%)
HSVhsv(291, 76%, 40%)
CMYKcmyk(11.7%, 75.7%, 0%, 59.6%)
CIE-LABlab(23.34, 41.13, -31.18)
CIE-LCHlch(23.34, 51.61, 322.83°)
OKLaboklab(35.71% 0.1079 -0.0872)
OKLCHoklch(35.71% 0.139 321)
XYZxyz(7.1099, 3.8991, 13.2074)
Luminance0.0390 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1967 #256719
analogous
#341967 #5B1967 #67194C
triadic
#5B1967 #675B19 #19675B
tetradic
#5B1967 #673419 #256719 #194C67
square
#5B1967 #673419 #256719 #194C67
split-complementary
#5B1967 #4C6719 #196734
monochromatic
#160619 #2F0D36 #5B1967 #872598 #B231C9

Accessibility & contrast

On white

11.80
#5B1967 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#5B1967 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1967
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1967#FFFFFF#000000##FFFFFF
##5B19671.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003369
Deuteranopia (green-blind)
#223A65
Tritanopia (blue-blind)
#5C283E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5b1967;
/* rgb */ color: rgb(91, 25, 103);
/* oklch */ color: oklch(35.7% 0.139 321.0);
Tailwind
colors: {
  custom: {
    50: '#8c5d93',
    500: '#5b1967',
    950: '#000000',
  },
}
SCSS
$custom: #5b1967;
$custom-light: #8c5d93;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1967",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 103
  },
  "hsl": {
    "h": 290.769,
    "s": 60.938,
    "l": 25.098
  },
  "oklch": {
    "l": 0.35711,
    "c": 0.13872,
    "h": 321
  },
  "luminance": 0.03899
}

Semantic roles & 50–950 ramp

primary
#5B1967
secondary
#4D9D3F
accent
#E4445C
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5B1967

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

Preview Lab → · Contrast checker → · Palette generator →

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