#5B1850#5B1850

#5B1850 is a dark, moderate purple. Relative luminance 0.035; OKLCH L 34.1% C 0.119 H 335.2°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#5B1850
RGBrgb(91, 24, 80)
HSLhsl(310, 58%, 23%)
HSVhsv(310, 74%, 36%)
CMYKcmyk(0%, 73.6%, 12.1%, 64.3%)
CIE-LABlab(21.79, 37.18, -18.38)
CIE-LCHlch(21.79, 41.48, 333.69°)
OKLaboklab(34.15% 0.1084 -0.0501)
OKLCHoklch(34.15% 0.119 335.2)
XYZxyz(6.0891, 3.4571, 7.9345)
Luminance0.0346 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1850 #185B23
analogous
#45185B #5B1850 #5B182E
triadic
#5B1850 #505B18 #18505B
tetradic
#5B1850 #5B4518 #185B23 #182E5B
square
#5B1850 #5B4518 #185B23 #182E5B
split-complementary
#5B1850 #2E5B18 #185B45
monochromatic
#180615 #2B0B25 #5B1850 #8B257B #BC32A5

Accessibility & contrast

On white

12.42
#5B1850 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#5B1850 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1850
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1850#FFFFFF#000000##FFFFFF
##5B18501.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182E52
Deuteranopia (green-blind)
#2F384E
Tritanopia (blue-blind)
#601D31
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5b1850;
/* rgb */ color: rgb(91, 24, 80);
/* oklch */ color: oklch(34.1% 0.119 335.2);
Tailwind
colors: {
  custom: {
    50: '#8c5b81',
    500: '#5b1850',
    950: '#000000',
  },
}
SCSS
$custom: #5b1850;
$custom-light: #8c5b81;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1850",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 80
  },
  "hsl": {
    "h": 309.851,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.34147,
    "c": 0.11944,
    "h": 335.2
  },
  "luminance": 0.03457
}

Semantic roles & 50–950 ramp

primary
#5B1850
secondary
#3D924B
accent
#E16046
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B1850

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

Preview Lab → · Contrast checker → · Palette generator →

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