#5B1853#5B1853

#5B1853 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.3% C 0.122 H 333.1°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#5B1853
RGBrgb(91, 24, 83)
HSLhsl(307, 58%, 23%)
HSVhsv(307, 74%, 36%)
CMYKcmyk(0%, 73.6%, 8.8%, 64.3%)
CIE-LABlab(21.95, 37.71, -20.14)
CIE-LCHlch(21.95, 42.75, 331.89°)
OKLaboklab(34.32% 0.1087 -0.0552)
OKLCHoklch(34.32% 0.122 333.1)
XYZxyz(6.2024, 3.5025, 8.5313)
Luminance0.0350 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1853 #185B20
analogous
#41185B #5B1853 #5B1832
triadic
#5B1853 #535B18 #18535B
tetradic
#5B1853 #5B4118 #185B20 #18325B
square
#5B1853 #5B4118 #185B20 #18325B
split-complementary
#5B1853 #325B18 #185B41
monochromatic
#180616 #2B0B27 #5B1853 #8B257F #BC32AB

Accessibility & contrast

On white

12.35
#5B1853 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#5B1853 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1853
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1853#FFFFFF#000000##FFFFFF
##5B18531.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162E55
Deuteranopia (green-blind)
#2D3851
Tritanopia (blue-blind)
#5F1E33
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5b1853;
/* rgb */ color: rgb(91, 24, 83);
/* oklch */ color: oklch(34.3% 0.122 333.1);
Tailwind
colors: {
  custom: {
    50: '#8c5c83',
    500: '#5b1853',
    950: '#000000',
  },
}
SCSS
$custom: #5b1853;
$custom-light: #8c5c83;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1853",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 83
  },
  "hsl": {
    "h": 307.164,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.34319,
    "c": 0.12194,
    "h": 333.1
  },
  "luminance": 0.03502
}

Semantic roles & 50–950 ramp

primary
#5B1853
secondary
#3D9247
accent
#E15946
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B1853

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

Preview Lab → · Contrast checker → · Palette generator →

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