#5B1350#5B1350

#5B1350 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.6% C 0.126 H 335.0°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#5B1350
RGBrgb(91, 19, 80)
HSLhsl(309, 65%, 22%)
HSVhsv(309, 79%, 36%)
CMYKcmyk(0%, 79.1%, 12.1%, 64.3%)
CIE-LABlab(21.09, 39.15, -19.47)
CIE-LCHlch(21.09, 43.73, 333.55°)
OKLaboklab(33.64% 0.1142 -0.0532)
OKLCHoklch(33.64% 0.126 335)
XYZxyz(5.9953, 3.2696, 7.9032)
Luminance0.0327 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1350 #135B1E
analogous
#42135B #5B1350 #5B132C
triadic
#5B1350 #505B13 #13505B
tetradic
#5B1350 #5B4213 #135B1E #132C5B
square
#5B1350 #5B4213 #135B1E #132C5B
split-complementary
#5B1350 #2C5B13 #135B42
monochromatic
#190516 #280823 #5B1350 #8E1E7D #C028A9

Accessibility & contrast

On white

12.70
#5B1350 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#5B1350 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1350
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1350#FFFFFF#000000##FFFFFF
##5B13501.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132C52
Deuteranopia (green-blind)
#2D364E
Tritanopia (blue-blind)
#601930
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5b1350;
/* rgb */ color: rgb(91, 19, 80);
/* oklch */ color: oklch(33.6% 0.126 335.0);
Tailwind
colors: {
  custom: {
    50: '#8c5981',
    500: '#5b1350',
    950: '#000000',
  },
}
SCSS
$custom: #5b1350;
$custom-light: #8c5981;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1350",
  "rgb": {
    "r": 91,
    "g": 19,
    "b": 80
  },
  "hsl": {
    "h": 309.167,
    "s": 65.455,
    "l": 21.569
  },
  "oklch": {
    "l": 0.33644,
    "c": 0.12601,
    "h": 335
  },
  "luminance": 0.03269
}

Semantic roles & 50–950 ramp

primary
#5B1350
secondary
#379345
accent
#E8593F
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B1350

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

Preview Lab → · Contrast checker → · Palette generator →

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