#581B4F#581B4F

#581B4F is a dark, moderate purple. Relative luminance 0.034; OKLCH L 33.9% C 0.112 H 334.1°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#581B4F
RGBrgb(88, 27, 79)
HSLhsl(309, 53%, 23%)
HSVhsv(309, 69%, 35%)
CMYKcmyk(0%, 69.3%, 10.2%, 65.5%)
CIE-LABlab(21.67, 34.81, -17.94)
CIE-LCHlch(21.67, 39.16, 332.73°)
OKLaboklab(33.93% 0.1008 -0.049)
OKLCHoklch(33.93% 0.112 334.1)
XYZxyz(5.8278, 3.4235, 7.7495)
Luminance0.0342 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581B4F #1B5824
analogous
#421B58 #581B4F #581B31
triadic
#581B4F #4F581B #1B4F58
tetradic
#581B4F #58421B #1B5824 #1B3158
square
#581B4F #58421B #1B5824 #1B3158
split-complementary
#581B4F #31581B #1B5842
monochromatic
#170715 #290D25 #581B4F #872979 #B638A3

Accessibility & contrast

On white

12.47
#581B4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#581B4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581B4F
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581B4F#FFFFFF#000000##FFFFFF
##581B4F1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2E51
Deuteranopia (green-blind)
#2E374D
Tritanopia (blue-blind)
#5C2032
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #581b4f;
/* rgb */ color: rgb(88, 27, 79);
/* oklch */ color: oklch(33.9% 0.112 334.1);
Tailwind
colors: {
  custom: {
    50: '#895d80',
    500: '#581b4f',
    950: '#000000',
  },
}
SCSS
$custom: #581b4f;
$custom-light: #895d80;
$custom-dark: #000000;
JSON
{
  "hex": "#581b4f",
  "rgb": {
    "r": 88,
    "g": 27,
    "b": 79
  },
  "hsl": {
    "h": 308.852,
    "s": 53.043,
    "l": 22.549
  },
  "oklch": {
    "l": 0.33934,
    "c": 0.11206,
    "h": 334.1
  },
  "luminance": 0.03423
}

Semantic roles & 50–950 ramp

primary
#581B4F
secondary
#418E4C
accent
#DC614B
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #581B4F

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

Preview Lab → · Contrast checker → · Palette generator →

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