#581B54#581B54

#581B54 is a dark, moderate purple. Relative luminance 0.035; OKLCH L 34.2% C 0.117 H 330.5°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#581B54
RGBrgb(88, 27, 84)
HSLhsl(304, 53%, 23%)
HSVhsv(304, 69%, 35%)
CMYKcmyk(0%, 69.3%, 4.5%, 65.5%)
CIE-LABlab(21.94, 35.73, -20.87)
CIE-LCHlch(21.94, 41.38, 329.71°)
OKLaboklab(34.22% 0.1014 -0.0574)
OKLCHoklch(34.22% 0.117 330.5)
XYZxyz(6.0166, 3.4991, 8.7443)
Luminance0.0350 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581B54 #1B581F
analogous
#3D1B58 #581B54 #581B36
triadic
#581B54 #54581B #1B5458
tetradic
#581B54 #583D1B #1B581F #1B3658
square
#581B54 #583D1B #1B581F #1B3658
split-complementary
#581B54 #36581B #1B583D
monochromatic
#170716 #290D27 #581B54 #872981 #B638AD

Accessibility & contrast

On white

12.35
#581B54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#581B54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581B54
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581B54#FFFFFF#000000##FFFFFF
##581B541.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)
#162F56
Deuteranopia (green-blind)
#2C3852
Tritanopia (blue-blind)
#5C2235
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #581b54;
/* rgb */ color: rgb(88, 27, 84);
/* oklch */ color: oklch(34.2% 0.117 330.5);
Tailwind
colors: {
  custom: {
    50: '#895d84',
    500: '#581b54',
    950: '#000000',
  },
}
SCSS
$custom: #581b54;
$custom-light: #895d84;
$custom-dark: #000000;
JSON
{
  "hex": "#581b54",
  "rgb": {
    "r": 88,
    "g": 27,
    "b": 84
  },
  "hsl": {
    "h": 303.934,
    "s": 53.043,
    "l": 22.549
  },
  "oklch": {
    "l": 0.34223,
    "c": 0.11651,
    "h": 330.5
  },
  "luminance": 0.03499
}

Semantic roles & 50–950 ramp

primary
#581B54
secondary
#418E46
accent
#DC554B
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #581B54

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

Preview Lab → · Contrast checker → · Palette generator →

#581B54 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva