#581A5C#581A5C

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

Color values

HEX#581A5C
RGBrgb(88, 26, 92)
HSLhsl(296, 56%, 23%)
HSVhsv(296, 72%, 36%)
CMYKcmyk(4.3%, 71.7%, 0%, 63.9%)
CIE-LABlab(22.25, 37.73, -25.71)
CIE-LCHlch(22.25, 45.66, 325.73°)
OKLaboklab(34.6% 0.1031 -0.0714)
OKLCHoklch(34.6% 0.125 325.3)
XYZxyz(6.3255, 3.5866, 10.4822)
Luminance0.0359 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581A5C #1E5C1A
analogous
#371A5C #581A5C #5C1A3F
triadic
#581A5C #5C581A #1A5C58
tetradic
#581A5C #5C371A #1E5C1A #1A3F5C
square
#581A5C #5C371A #1E5C1A #1A3F5C
split-complementary
#581A5C #3F5C1A #1A5C37
monochromatic
#170718 #2A0D2C #581A5C #86278C #B335BB

Accessibility & contrast

On white

12.23
#581A5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581A5C
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581A5C#FFFFFF#000000##FFFFFF
##581A5C1.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C305E
Deuteranopia (green-blind)
#27385A
Tritanopia (blue-blind)
#5A2438
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #581a5c;
/* rgb */ color: rgb(88, 26, 92);
/* oklch */ color: oklch(34.6% 0.125 325.3);
Tailwind
colors: {
  custom: {
    50: '#8a5d8a',
    500: '#581a5c',
    950: '#000000',
  },
}
SCSS
$custom: #581a5c;
$custom-light: #8a5d8a;
$custom-dark: #000000;
JSON
{
  "hex": "#581a5c",
  "rgb": {
    "r": 88,
    "g": 26,
    "b": 92
  },
  "hsl": {
    "h": 296.364,
    "s": 55.932,
    "l": 23.137
  },
  "oklch": {
    "l": 0.34604,
    "c": 0.1254,
    "h": 325.3
  },
  "luminance": 0.03586
}

Semantic roles & 50–950 ramp

primary
#581A5C
secondary
#459240
accent
#DF4952
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #581A5C

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

Preview Lab → · Contrast checker → · Palette generator →

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