#581F5A#581F5A

#581F5A is a dark, moderate purple. Relative luminance 0.038; OKLCH L 35.1% C 0.116 H 326.3°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#581F5A
RGBrgb(88, 31, 90)
HSLhsl(298, 49%, 24%)
HSVhsv(298, 66%, 35%)
CMYKcmyk(2.2%, 65.6%, 0%, 64.7%)
CIE-LABlab(22.98, 34.99, -23.24)
CIE-LCHlch(22.98, 42.00, 326.41°)
OKLaboklab(35.09% 0.0965 -0.0643)
OKLCHoklch(35.09% 0.116 326.3)
XYZxyz(6.3598, 3.7933, 10.0681)
Luminance0.0379 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581F5A #215A1F
analogous
#3A1F5A #581F5A #5A1F3E
triadic
#581F5A #5A581F #1F5A58
tetradic
#581F5A #5A3A1F #215A1F #1F3E5A
square
#581F5A #5A3A1F #215A1F #1F3E5A
split-complementary
#581F5A #3E5A1F #1F5A3A
monochromatic
#160817 #2B0F2C #581F5A #852F88 #B13EB5

Accessibility & contrast

On white

11.94
#581F5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#581F5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581F5A
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581F5A#FFFFFF#000000##FFFFFF
##581F5A1.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17325C
Deuteranopia (green-blind)
#2B3958
Tritanopia (blue-blind)
#5A2739
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #581f5a;
/* rgb */ color: rgb(88, 31, 90);
/* oklch */ color: oklch(35.1% 0.116 326.3);
Tailwind
colors: {
  custom: {
    50: '#895f89',
    500: '#581f5a',
    950: '#000000',
  },
}
SCSS
$custom: #581f5a;
$custom-light: #895f89;
$custom-dark: #000000;
JSON
{
  "hex": "#581f5a",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 90
  },
  "hsl": {
    "h": 297.966,
    "s": 48.76,
    "l": 23.725
  },
  "oklch": {
    "l": 0.35087,
    "c": 0.11593,
    "h": 326.3
  },
  "luminance": 0.03793
}

Semantic roles & 50–950 ramp

primary
#581F5A
secondary
#498F46
accent
#D84F54
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C050B
muted
#7D797C

Preview Lab

Preview with #581F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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