#581C5B#581C5B

#581C5B is a dark, vivid purple. Relative luminance 0.037; OKLCH L 34.8% C 0.122 H 325.8°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#581C5B
RGBrgb(88, 28, 91)
HSLhsl(297, 53%, 23%)
HSVhsv(297, 69%, 36%)
CMYKcmyk(3.3%, 69.2%, 0%, 64.3%)
CIE-LABlab(22.52, 36.63, -24.63)
CIE-LCHlch(22.52, 44.14, 326.08°)
OKLaboklab(34.77% 0.1006 -0.0683)
OKLCHoklch(34.77% 0.122 325.8)
XYZxyz(6.3280, 3.6609, 10.2688)
Luminance0.0366 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581C5B #1F5B1C
analogous
#381C5B #581C5B #5B1C3E
triadic
#581C5B #5B581C #1C5B58
tetradic
#581C5B #5B381C #1F5B1C #1C3E5B
square
#581C5B #5B381C #1F5B1C #1C3E5B
split-complementary
#581C5B #3E5B1C #1C5B38
monochromatic
#170717 #2B0E2C #581C5B #852A8A #B339B9

Accessibility & contrast

On white

12.12
#581C5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#581C5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581C5B
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581C5B#FFFFFF#000000##FFFFFF
##581C5B1.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11315D
Deuteranopia (green-blind)
#293859
Tritanopia (blue-blind)
#5A2539
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #581c5b;
/* rgb */ color: rgb(88, 28, 91);
/* oklch */ color: oklch(34.8% 0.122 325.8);
Tailwind
colors: {
  custom: {
    50: '#895d8a',
    500: '#581c5b',
    950: '#000000',
  },
}
SCSS
$custom: #581c5b;
$custom-light: #895d8a;
$custom-dark: #000000;
JSON
{
  "hex": "#581c5b",
  "rgb": {
    "r": 88,
    "g": 28,
    "b": 91
  },
  "hsl": {
    "h": 297.143,
    "s": 52.941,
    "l": 23.333
  },
  "oklch": {
    "l": 0.34774,
    "c": 0.12154,
    "h": 325.8
  },
  "luminance": 0.03661
}

Semantic roles & 50–950 ramp

primary
#581C5B
secondary
#469042
accent
#DC4B52
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #581C5B

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

Preview Lab → · Contrast checker → · Palette generator →

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