#5B1461#5B1461

#5B1461 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.139 H 324.6°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#5B1461
RGBrgb(91, 20, 97)
HSLhsl(295, 66%, 23%)
HSVhsv(295, 79%, 38%)
CMYKcmyk(6.2%, 79.4%, 0%, 62%)
CIE-LABlab(22.26, 41.86, -28.97)
CIE-LCHlch(22.26, 50.91, 325.31°)
OKLaboklab(34.82% 0.1135 -0.0807)
OKLCHoklch(34.82% 0.139 324.6)
XYZxyz(6.7220, 3.5880, 11.6454)
Luminance0.0359 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1461 #1A6114
analogous
#351461 #5B1461 #611440
triadic
#5B1461 #615B14 #14615B
tetradic
#5B1461 #613514 #1A6114 #144061
square
#5B1461 #613514 #1A6114 #144061
split-complementary
#5B1461 #406114 #146135
monochromatic
#180519 #2B0A2E #5B1461 #8B1E94 #BA29C6

Accessibility & contrast

On white

12.23
#5B1461 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5B1461 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1461
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1461#FFFFFF#000000##FFFFFF
##5B14611.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003063
Deuteranopia (green-blind)
#23385F
Tritanopia (blue-blind)
#5D223A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5b1461;
/* rgb */ color: rgb(91, 20, 97);
/* oklch */ color: oklch(34.8% 0.139 324.6);
Tailwind
colors: {
  custom: {
    50: '#8c5a8e',
    500: '#5b1461',
    950: '#000000',
  },
}
SCSS
$custom: #5b1461;
$custom-light: #8c5a8e;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1461",
  "rgb": {
    "r": 91,
    "g": 20,
    "b": 97
  },
  "hsl": {
    "h": 295.325,
    "s": 65.812,
    "l": 22.941
  },
  "oklch": {
    "l": 0.34815,
    "c": 0.13925,
    "h": 324.6
  },
  "luminance": 0.03588
}

Semantic roles & 50–950 ramp

primary
#5B1461
secondary
#409838
accent
#E93F4C
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B1461

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

Preview Lab → · Contrast checker → · Palette generator →

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