#581B5A#581B5A

#581B5A is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.6% C 0.122 H 326.5°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#581B5A
RGBrgb(88, 27, 90)
HSLhsl(298, 54%, 23%)
HSVhsv(298, 70%, 35%)
CMYKcmyk(2.2%, 70%, 0%, 64.7%)
CIE-LABlab(22.29, 36.89, -24.32)
CIE-LCHlch(22.29, 44.18, 326.60°)
OKLaboklab(34.59% 0.1018 -0.0674)
OKLCHoklch(34.59% 0.122 326.5)
XYZxyz(6.2618, 3.5972, 10.0354)
Luminance0.0360 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581B5A #1D5A1B
analogous
#381B5A #581B5A #5A1B3C
triadic
#581B5A #5A581B #1B5A58
tetradic
#581B5A #5A381B #1D5A1B #1B3C5A
square
#581B5A #5A381B #1D5A1B #1B3C5A
split-complementary
#581B5A #3C5A1B #1B5A38
monochromatic
#170718 #2A0D2B #581B5A #862989 #B437B8

Accessibility & contrast

On white

12.21
#581B5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581B5A
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581B5A#FFFFFF#000000##FFFFFF
##581B5A1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11305C
Deuteranopia (green-blind)
#293858
Tritanopia (blue-blind)
#5A2438
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #581b5a;
/* rgb */ color: rgb(88, 27, 90);
/* oklch */ color: oklch(34.6% 0.122 326.5);
Tailwind
colors: {
  custom: {
    50: '#8a5d89',
    500: '#581b5a',
    950: '#000000',
  },
}
SCSS
$custom: #581b5a;
$custom-light: #8a5d89;
$custom-dark: #000000;
JSON
{
  "hex": "#581b5a",
  "rgb": {
    "r": 88,
    "g": 27,
    "b": 90
  },
  "hsl": {
    "h": 298.095,
    "s": 53.846,
    "l": 22.941
  },
  "oklch": {
    "l": 0.34591,
    "c": 0.12207,
    "h": 326.5
  },
  "luminance": 0.03597
}

Semantic roles & 50–950 ramp

primary
#581B5A
secondary
#449041
accent
#DD4B4F
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #581B5A

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

Preview Lab → · Contrast checker → · Palette generator →

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