#581B76#581B76

#581B76 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.6% C 0.150 H 311.8°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#581B76
RGBrgb(88, 27, 118)
HSLhsl(280, 63%, 28%)
HSVhsv(280, 77%, 46%)
CMYKcmyk(25.4%, 77.1%, 0%, 53.7%)
CIE-LABlab(24.22, 42.87, -39.48)
CIE-LCHlch(24.22, 58.28, 317.36°)
OKLaboklab(36.58% 0.0998 -0.1117)
OKLCHoklch(36.58% 0.15 311.8)
XYZxyz(7.6858, 4.1668, 17.5354)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581B76 #39761B
analogous
#2A1B76 #581B76 #761B66
triadic
#581B76 #76581B #1B7658
tetradic
#581B76 #762A1B #39761B #1B6676
square
#581B76 #762A1B #39761B #1B6676
split-complementary
#581B76 #66761B #1B762A
monochromatic
#130619 #331044 #581B76 #7D26A8 #A03AD2

Accessibility & contrast

On white

11.45
#581B76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#581B76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581B76
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581B76#FFFFFF#000000##FFFFFF
##581B761.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003779
Deuteranopia (green-blind)
#0D3B74
Tritanopia (blue-blind)
#543047
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #581b76;
/* rgb */ color: rgb(88, 27, 118);
/* oklch */ color: oklch(36.6% 0.150 311.8);
Tailwind
colors: {
  custom: {
    50: '#8b5e9e',
    500: '#581b76',
    950: '#000000',
  },
}
SCSS
$custom: #581b76;
$custom-light: #8b5e9e;
$custom-dark: #000000;
JSON
{
  "hex": "#581b76",
  "rgb": {
    "r": 88,
    "g": 27,
    "b": 118
  },
  "hsl": {
    "h": 280.22,
    "s": 62.759,
    "l": 28.431
  },
  "oklch": {
    "l": 0.36581,
    "c": 0.14979,
    "h": 311.8
  },
  "luminance": 0.04167
}

Semantic roles & 50–950 ramp

primary
#581B76
secondary
#65AA42
accent
#E64278
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #581B76

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

Preview Lab → · Contrast checker → · Palette generator →

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