#5A1B59#5A1B59

#5A1B59 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 34.8% C 0.122 H 328.5°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#5A1B59
RGBrgb(90, 27, 89)
HSLhsl(301, 54%, 23%)
HSVhsv(301, 70%, 35%)
CMYKcmyk(0%, 70%, 1.1%, 64.7%)
CIE-LABlab(22.58, 37.24, -23.18)
CIE-LCHlch(22.58, 43.86, 328.10°)
OKLaboklab(34.85% 0.1043 -0.064)
OKLCHoklch(34.85% 0.122 328.5)
XYZxyz(6.4115, 3.6792, 9.8217)
Luminance0.0368 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1B59 #1B5A1C
analogous
#3B1B5A #5A1B59 #5A1B39
triadic
#5A1B59 #595A1B #1B595A
tetradic
#5A1B59 #5A3B1B #1B5A1C #1B395A
square
#5A1B59 #5A3B1B #1B5A1C #1B395A
split-complementary
#5A1B59 #395A1B #1B5A3B
monochromatic
#180717 #2B0D2A #5A1B59 #892988 #B837B6

Accessibility & contrast

On white

12.10
#5A1B59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#5A1B59 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1B59
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1B59#FFFFFF#000000##FFFFFF
##5A1B591.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13315B
Deuteranopia (green-blind)
#2B3957
Tritanopia (blue-blind)
#5D2337
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5a1b59;
/* rgb */ color: rgb(90, 27, 89);
/* oklch */ color: oklch(34.8% 0.122 328.5);
Tailwind
colors: {
  custom: {
    50: '#8b5d88',
    500: '#5a1b59',
    950: '#000000',
  },
}
SCSS
$custom: #5a1b59;
$custom-light: #8b5d88;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1b59",
  "rgb": {
    "r": 90,
    "g": 27,
    "b": 89
  },
  "hsl": {
    "h": 300.952,
    "s": 53.846,
    "l": 22.941
  },
  "oklch": {
    "l": 0.3485,
    "c": 0.12233,
    "h": 328.5
  },
  "luminance": 0.03679
}

Semantic roles & 50–950 ramp

primary
#5A1B59
secondary
#419042
accent
#DD4D4B
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5A1B59

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

Preview Lab → · Contrast checker → · Palette generator →

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