#581A52#581A52

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

Color values

HEX#581A52
RGBrgb(88, 26, 82)
HSLhsl(306, 54%, 22%)
HSVhsv(306, 70%, 35%)
CMYKcmyk(0%, 70.5%, 6.8%, 65.5%)
CIE-LABlab(21.66, 35.82, -19.97)
CIE-LCHlch(21.66, 41.00, 330.86°)
OKLaboklab(33.99% 0.1025 -0.0548)
OKLCHoklch(33.99% 0.116 331.9)
XYZxyz(5.9169, 3.4231, 8.3301)
Luminance0.0342 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581A52 #1A5820
analogous
#3F1A58 #581A52 #581A33
triadic
#581A52 #52581A #1A5258
tetradic
#581A52 #583F1A #1A5820 #1A3358
square
#581A52 #583F1A #1A5820 #1A3358
split-complementary
#581A52 #33581A #1A583F
monochromatic
#180716 #290C26 #581A52 #87287E #B636AA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##581A52#FFFFFF#000000##FFFFFF
##581A521.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)
#172E54
Deuteranopia (green-blind)
#2C3750
Tritanopia (blue-blind)
#5C2033
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #581a52;
/* rgb */ color: rgb(88, 26, 82);
/* oklch */ color: oklch(34.0% 0.116 331.9);
Tailwind
colors: {
  custom: {
    50: '#895c83',
    500: '#581a52',
    950: '#000000',
  },
}
SCSS
$custom: #581a52;
$custom-light: #895c83;
$custom-dark: #000000;
JSON
{
  "hex": "#581a52",
  "rgb": {
    "r": 88,
    "g": 26,
    "b": 82
  },
  "hsl": {
    "h": 305.806,
    "s": 54.386,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33986,
    "c": 0.11622,
    "h": 331.9
  },
  "luminance": 0.03423
}

Semantic roles & 50–950 ramp

primary
#581A52
secondary
#408E47
accent
#DE584A
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #581A52

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

Preview Lab → · Contrast checker → · Palette generator →

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