#581D6C#581D6C

#581D6C is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.0% C 0.137 H 316.2°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#581D6C
RGBrgb(88, 29, 108)
HSLhsl(285, 58%, 27%)
HSVhsv(285, 73%, 42%)
CMYKcmyk(18.5%, 73.1%, 0%, 57.6%)
CIE-LABlab(23.79, 39.75, -33.73)
CIE-LCHlch(23.79, 52.13, 319.69°)
OKLaboklab(36.05% 0.0989 -0.0948)
OKLCHoklch(36.05% 0.137 316.2)
XYZxyz(7.1702, 4.0364, 14.5859)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581D6C #316C1D
analogous
#311D6C #581D6C #6C1D59
triadic
#581D6C #6C581D #1D6C58
tetradic
#581D6C #6C311D #316C1D #1D596C
square
#581D6C #6C311D #316C1D #1D596C
split-complementary
#581D6C #596C1D #1D6C31
monochromatic
#140618 #31103C #581D6C #7F2A9C #A539CA

Accessibility & contrast

On white

11.62
#581D6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#581D6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581D6C
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581D6C#FFFFFF#000000##FFFFFF
##581D6C1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00356E
Deuteranopia (green-blind)
#1D3A6A
Tritanopia (blue-blind)
#572D42
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #581d6c;
/* rgb */ color: rgb(88, 29, 108);
/* oklch */ color: oklch(36.0% 0.137 316.2);
Tailwind
colors: {
  custom: {
    50: '#8a5f97',
    500: '#581d6c',
    950: '#000000',
  },
}
SCSS
$custom: #581d6c;
$custom-light: #8a5f97;
$custom-dark: #000000;
JSON
{
  "hex": "#581d6c",
  "rgb": {
    "r": 88,
    "g": 29,
    "b": 108
  },
  "hsl": {
    "h": 284.81,
    "s": 57.664,
    "l": 26.863
  },
  "oklch": {
    "l": 0.36047,
    "c": 0.13704,
    "h": 316.2
  },
  "luminance": 0.04036
}

Semantic roles & 50–950 ramp

primary
#581D6C
secondary
#5CA144
accent
#E1476E
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050D
muted
#7D797E

Preview Lab

Preview with #581D6C

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

Preview Lab → · Contrast checker → · Palette generator →

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