#581B5B#581B5B

#581B5B is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.7% C 0.123 H 325.9°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#581B5B
RGBrgb(88, 27, 91)
HSLhsl(297, 54%, 23%)
HSVhsv(297, 70%, 36%)
CMYKcmyk(3.3%, 70.3%, 0%, 64.3%)
CIE-LABlab(22.35, 37.09, -24.89)
CIE-LCHlch(22.35, 44.66, 326.13°)
OKLaboklab(34.66% 0.1018 -0.069)
OKLCHoklch(34.66% 0.123 325.9)
XYZxyz(6.3046, 3.6143, 10.2611)
Luminance0.0361 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581B5B #1E5B1B
analogous
#381B5B #581B5B #5B1B3E
triadic
#581B5B #5B581B #1B5B58
tetradic
#581B5B #5B381B #1E5B1B #1B3E5B
square
#581B5B #5B381B #1E5B1B #1B3E5B
split-complementary
#581B5B #3E5B1B #1B5B38
monochromatic
#170718 #2A0D2C #581B5B #86298A #B337B9

Accessibility & contrast

On white

12.19
#581B5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#581B5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581B5B
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581B5B#FFFFFF#000000##FFFFFF
##581B5B1.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F315D
Deuteranopia (green-blind)
#283859
Tritanopia (blue-blind)
#5A2438
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #581b5b;
/* rgb */ color: rgb(88, 27, 91);
/* oklch */ color: oklch(34.7% 0.123 325.9);
Tailwind
colors: {
  custom: {
    50: '#8a5d8a',
    500: '#581b5b',
    950: '#000000',
  },
}
SCSS
$custom: #581b5b;
$custom-light: #8a5d8a;
$custom-dark: #000000;
JSON
{
  "hex": "#581b5b",
  "rgb": {
    "r": 88,
    "g": 27,
    "b": 91
  },
  "hsl": {
    "h": 297.188,
    "s": 54.237,
    "l": 23.137
  },
  "oklch": {
    "l": 0.34655,
    "c": 0.12301,
    "h": 325.9
  },
  "luminance": 0.03614
}

Semantic roles & 50–950 ramp

primary
#581B5B
secondary
#459141
accent
#DE4A51
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #581B5B

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

Preview Lab → · Contrast checker → · Palette generator →

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