#581A5A#581A5A

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

Color values

HEX#581A5A
RGBrgb(88, 26, 90)
HSLhsl(298, 55%, 23%)
HSVhsv(298, 71%, 35%)
CMYKcmyk(2.2%, 71.1%, 0%, 64.7%)
CIE-LABlab(22.13, 37.34, -24.57)
CIE-LCHlch(22.13, 44.70, 326.65°)
OKLaboklab(34.48% 0.1031 -0.0681)
OKLCHoklch(34.48% 0.124 326.5)
XYZxyz(6.2392, 3.5521, 10.0279)
Luminance0.0355 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581A5A #1C5A1A
analogous
#381A5A #581A5A #5A1A3C
triadic
#581A5A #5A581A #1A5A58
tetradic
#581A5A #5A381A #1C5A1A #1A3C5A
square
#581A5A #5A381A #1C5A1A #1A3C5A
split-complementary
#581A5A #3C5A1A #1A5A38
monochromatic
#170718 #2A0C2B #581A5A #862889 #B535B9

Accessibility & contrast

On white

12.28
#581A5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581A5A
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581A5A#FFFFFF#000000##FFFFFF
##581A5A1.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F305C
Deuteranopia (green-blind)
#283858
Tritanopia (blue-blind)
#5B2337
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #581a5a;
/* rgb */ color: rgb(88, 26, 90);
/* oklch */ color: oklch(34.5% 0.124 326.5);
Tailwind
colors: {
  custom: {
    50: '#8a5c89',
    500: '#581a5a',
    950: '#000000',
  },
}
SCSS
$custom: #581a5a;
$custom-light: #8a5c89;
$custom-dark: #000000;
JSON
{
  "hex": "#581a5a",
  "rgb": {
    "r": 88,
    "g": 26,
    "b": 90
  },
  "hsl": {
    "h": 298.125,
    "s": 55.172,
    "l": 22.745
  },
  "oklch": {
    "l": 0.34476,
    "c": 0.12352,
    "h": 326.5
  },
  "luminance": 0.03552
}

Semantic roles & 50–950 ramp

primary
#581A5A
secondary
#429040
accent
#DF494E
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #581A5A

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

Preview Lab → · Contrast checker → · Palette generator →

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