#581B4E#581B4E

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

Color values

HEX#581B4E
RGBrgb(88, 27, 78)
HSLhsl(310, 53%, 23%)
HSVhsv(310, 69%, 35%)
CMYKcmyk(0%, 69.3%, 11.4%, 65.5%)
CIE-LABlab(21.61, 34.63, -17.35)
CIE-LCHlch(21.61, 38.73, 333.39°)
OKLaboklab(33.88% 0.1007 -0.0473)
OKLCHoklch(33.88% 0.111 334.8)
XYZxyz(5.7916, 3.4091, 7.5592)
Luminance0.0341 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581B4E #1B5825
analogous
#431B58 #581B4E #581B30
triadic
#581B4E #4E581B #1B4E58
tetradic
#581B4E #58431B #1B5825 #1B3058
square
#581B4E #58431B #1B5825 #1B3058
split-complementary
#581B4E #30581B #1B5843
monochromatic
#170715 #290D24 #581B4E #872978 #B638A1

Accessibility & contrast

On white

12.49
#581B4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581B4E
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581B4E#FFFFFF#000000##FFFFFF
##581B4E1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2E50
Deuteranopia (green-blind)
#2F374C
Tritanopia (blue-blind)
#5C1F31
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #581b4e;
/* rgb */ color: rgb(88, 27, 78);
/* oklch */ color: oklch(33.9% 0.111 334.8);
Tailwind
colors: {
  custom: {
    50: '#895c7f',
    500: '#581b4e',
    950: '#000000',
  },
}
SCSS
$custom: #581b4e;
$custom-light: #895c7f;
$custom-dark: #000000;
JSON
{
  "hex": "#581b4e",
  "rgb": {
    "r": 88,
    "g": 27,
    "b": 78
  },
  "hsl": {
    "h": 309.836,
    "s": 53.043,
    "l": 22.549
  },
  "oklch": {
    "l": 0.33878,
    "c": 0.1112,
    "h": 334.8
  },
  "luminance": 0.03409
}

Semantic roles & 50–950 ramp

primary
#581B4E
secondary
#418E4E
accent
#DC634B
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #581B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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