#581B51#581B51

#581B51 is a dark, moderate purple. Relative luminance 0.035; OKLCH L 34.0% C 0.114 H 332.6°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#581B51
RGBrgb(88, 27, 81)
HSLhsl(307, 53%, 23%)
HSVhsv(307, 69%, 35%)
CMYKcmyk(0%, 69.3%, 8%, 65.5%)
CIE-LABlab(21.77, 35.17, -19.12)
CIE-LCHlch(21.77, 40.03, 331.47°)
OKLaboklab(34.05% 0.1011 -0.0523)
OKLCHoklch(34.05% 0.114 332.6)
XYZxyz(5.9016, 3.4531, 8.1387)
Luminance0.0345 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581B51 #1B5822
analogous
#401B58 #581B51 #581B33
triadic
#581B51 #51581B #1B5158
tetradic
#581B51 #58401B #1B5822 #1B3358
square
#581B51 #58401B #1B5822 #1B3358
split-complementary
#581B51 #33581B #1B5840
monochromatic
#170716 #290D26 #581B51 #87297C #B638A7

Accessibility & contrast

On white

12.42
#581B51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#581B51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581B51
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581B51#FFFFFF#000000##FFFFFF
##581B511.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)
#192F53
Deuteranopia (green-blind)
#2D374F
Tritanopia (blue-blind)
#5C2033
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #581b51;
/* rgb */ color: rgb(88, 27, 81);
/* oklch */ color: oklch(34.0% 0.114 332.6);
Tailwind
colors: {
  custom: {
    50: '#895d82',
    500: '#581b51',
    950: '#000000',
  },
}
SCSS
$custom: #581b51;
$custom-light: #895d82;
$custom-dark: #000000;
JSON
{
  "hex": "#581b51",
  "rgb": {
    "r": 88,
    "g": 27,
    "b": 81
  },
  "hsl": {
    "h": 306.885,
    "s": 53.043,
    "l": 22.549
  },
  "oklch": {
    "l": 0.34048,
    "c": 0.11381,
    "h": 332.6
  },
  "luminance": 0.03453
}

Semantic roles & 50–950 ramp

primary
#581B51
secondary
#418E4A
accent
#DC5C4B
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #581B51

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

Preview Lab → · Contrast checker → · Palette generator →

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