#581B56#581B56

#581B56 is a dark, moderate purple. Relative luminance 0.035; OKLCH L 34.3% C 0.118 H 329.1°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#581B56
RGBrgb(88, 27, 86)
HSLhsl(302, 53%, 23%)
HSVhsv(302, 69%, 35%)
CMYKcmyk(0%, 69.3%, 2.3%, 65.5%)
CIE-LABlab(22.06, 36.11, -22.03)
CIE-LCHlch(22.06, 42.30, 328.61°)
OKLaboklab(34.34% 0.1016 -0.0607)
OKLCHoklch(34.34% 0.118 329.1)
XYZxyz(6.0961, 3.5309, 9.1627)
Luminance0.0353 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581B56 #1B581D
analogous
#3B1B58 #581B56 #581B38
triadic
#581B56 #56581B #1B5658
tetradic
#581B56 #583B1B #1B581D #1B3858
square
#581B56 #583B1B #1B581D #1B3858
split-complementary
#581B56 #38581B #1B583B
monochromatic
#170717 #290D28 #581B56 #872984 #B638B2

Accessibility & contrast

On white

12.31
#581B56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#581B56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581B56
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581B56#FFFFFF#000000##FFFFFF
##581B561.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153058
Deuteranopia (green-blind)
#2B3854
Tritanopia (blue-blind)
#5B2236
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #581b56;
/* rgb */ color: rgb(88, 27, 86);
/* oklch */ color: oklch(34.3% 0.118 329.1);
Tailwind
colors: {
  custom: {
    50: '#895d86',
    500: '#581b56',
    950: '#000000',
  },
}
SCSS
$custom: #581b56;
$custom-light: #895d86;
$custom-dark: #000000;
JSON
{
  "hex": "#581b56",
  "rgb": {
    "r": 88,
    "g": 27,
    "b": 86
  },
  "hsl": {
    "h": 301.967,
    "s": 53.043,
    "l": 22.549
  },
  "oklch": {
    "l": 0.34344,
    "c": 0.11833,
    "h": 329.1
  },
  "luminance": 0.0353
}

Semantic roles & 50–950 ramp

primary
#581B56
secondary
#418E44
accent
#DC504B
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #581B56

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

Preview Lab → · Contrast checker → · Palette generator →

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