#581A5F#581A5F

#581A5F is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.128 H 323.5°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#581A5F
RGBrgb(88, 26, 95)
HSLhsl(294, 57%, 24%)
HSVhsv(294, 73%, 37%)
CMYKcmyk(7.4%, 72.6%, 0%, 62.7%)
CIE-LABlab(22.44, 38.33, -27.39)
CIE-LCHlch(22.44, 47.11, 324.46°)
OKLaboklab(34.8% 0.1031 -0.0763)
OKLCHoklch(34.8% 0.128 323.5)
XYZxyz(6.4593, 3.6401, 11.1866)
Luminance0.0364 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581A5F #215F1A
analogous
#351A5F #581A5F #5F1A43
triadic
#581A5F #5F581A #1A5F58
tetradic
#581A5F #5F351A #215F1A #1A435F
square
#581A5F #5F351A #215F1A #1A435F
split-complementary
#581A5F #435F1A #1A5F35
monochromatic
#160718 #2B0D2F #581A5F #85278F #B134BF

Accessibility & contrast

On white

12.15
#581A5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581A5F
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581A5F#FFFFFF#000000##FFFFFF
##581A5F1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083161
Deuteranopia (green-blind)
#25385D
Tritanopia (blue-blind)
#5A253A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #581a5f;
/* rgb */ color: rgb(88, 26, 95);
/* oklch */ color: oklch(34.8% 0.128 323.5);
Tailwind
colors: {
  custom: {
    50: '#8a5d8d',
    500: '#581a5f',
    950: '#000000',
  },
}
SCSS
$custom: #581a5f;
$custom-light: #8a5d8d;
$custom-dark: #000000;
JSON
{
  "hex": "#581a5f",
  "rgb": {
    "r": 88,
    "g": 26,
    "b": 95
  },
  "hsl": {
    "h": 293.913,
    "s": 57.025,
    "l": 23.725
  },
  "oklch": {
    "l": 0.34801,
    "c": 0.12826,
    "h": 323.5
  },
  "luminance": 0.0364
}

Semantic roles & 50–950 ramp

primary
#581A5F
secondary
#499540
accent
#E04857
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #581A5F

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

Preview Lab → · Contrast checker → · Palette generator →

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