#581A5B#581A5B

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

Color values

HEX#581A5B
RGBrgb(88, 26, 91)
HSLhsl(297, 56%, 23%)
HSVhsv(297, 71%, 36%)
CMYKcmyk(3.3%, 71.4%, 0%, 64.3%)
CIE-LABlab(22.19, 37.53, -25.14)
CIE-LCHlch(22.19, 45.18, 326.18°)
OKLaboklab(34.54% 0.1031 -0.0697)
OKLCHoklch(34.54% 0.124 325.9)
XYZxyz(6.2821, 3.5692, 10.2535)
Luminance0.0357 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581A5B #1D5B1A
analogous
#371A5B #581A5B #5B1A3D
triadic
#581A5B #5B581A #1A5B58
tetradic
#581A5B #5B371A #1D5B1A #1A3D5B
square
#581A5B #5B371A #1D5B1A #1A3D5B
split-complementary
#581A5B #3D5B1A #1A5B37
monochromatic
#170718 #2A0C2B #581A5B #86288B #B435BA

Accessibility & contrast

On white

12.25
#581A5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581A5B
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581A5B#FFFFFF#000000##FFFFFF
##581A5B1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #581a5b;
/* rgb */ color: rgb(88, 26, 91);
/* oklch */ color: oklch(34.5% 0.124 325.9);
Tailwind
colors: {
  custom: {
    50: '#8a5c8a',
    500: '#581a5b',
    950: '#000000',
  },
}
SCSS
$custom: #581a5b;
$custom-light: #8a5c8a;
$custom-dark: #000000;
JSON
{
  "hex": "#581a5b",
  "rgb": {
    "r": 88,
    "g": 26,
    "b": 91
  },
  "hsl": {
    "h": 297.231,
    "s": 55.556,
    "l": 22.941
  },
  "oklch": {
    "l": 0.34539,
    "c": 0.12446,
    "h": 325.9
  },
  "luminance": 0.03569
}

Semantic roles & 50–950 ramp

primary
#581A5B
secondary
#449140
accent
#DF4950
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #581A5B

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

Preview Lab → · Contrast checker → · Palette generator →

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