#581B6D#581B6D

#581B6D is a dark, vivid purple. Relative luminance 0.040; OKLCH L 35.9% C 0.141 H 315.9°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#581B6D
RGBrgb(88, 27, 109)
HSLhsl(285, 60%, 27%)
HSVhsv(285, 75%, 43%)
CMYKcmyk(19.3%, 75.2%, 0%, 57.3%)
CIE-LABlab(23.55, 40.86, -34.77)
CIE-LCHlch(23.55, 53.65, 319.61°)
OKLaboklab(35.9% 0.1011 -0.0979)
OKLCHoklch(35.9% 0.141 315.9)
XYZxyz(7.1763, 3.9630, 14.8519)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581B6D #306D1B
analogous
#2F1B6D #581B6D #6D1B59
triadic
#581B6D #6D581B #1B6D58
tetradic
#581B6D #6D2F1B #306D1B #1B596D
square
#581B6D #6D2F1B #306D1B #1B596D
split-complementary
#581B6D #596D1B #1B6D2F
monochromatic
#140619 #300F3C #581B6D #80279E #A635CD

Accessibility & contrast

On white

11.71
#581B6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#581B6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581B6D
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581B6D#FFFFFF#000000##FFFFFF
##581B6D1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346F
Deuteranopia (green-blind)
#1A3A6B
Tritanopia (blue-blind)
#572C42
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #581b6d;
/* rgb */ color: rgb(88, 27, 109);
/* oklch */ color: oklch(35.9% 0.141 315.9);
Tailwind
colors: {
  custom: {
    50: '#8a5e97',
    500: '#581b6d',
    950: '#000000',
  },
}
SCSS
$custom: #581b6d;
$custom-light: #8a5e97;
$custom-dark: #000000;
JSON
{
  "hex": "#581b6d",
  "rgb": {
    "r": 88,
    "g": 27,
    "b": 109
  },
  "hsl": {
    "h": 284.634,
    "s": 60.294,
    "l": 26.667
  },
  "oklch": {
    "l": 0.35896,
    "c": 0.1407,
    "h": 315.9
  },
  "luminance": 0.03963
}

Semantic roles & 50–950 ramp

primary
#581B6D
secondary
#5AA242
accent
#E3446D
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050D
muted
#7D797E

Preview Lab

Preview with #581B6D

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

Preview Lab → · Contrast checker → · Palette generator →

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