#581D87#581D87

#581D87 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.165 H 304.9°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#581D87
RGBrgb(88, 29, 135)
HSLhsl(273, 65%, 32%)
HSVhsv(273, 79%, 53%)
CMYKcmyk(34.8%, 78.5%, 0%, 47.1%)
CIE-LABlab(25.87, 46.03, -47.54)
CIE-LCHlch(25.87, 66.17, 314.08°)
OKLaboklab(38.17% 0.0943 -0.1354)
OKLCHoklch(38.17% 0.165 304.9)
XYZxyz(8.8360, 4.7028, 23.3592)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581D87 #4C871D
analogous
#231D87 #581D87 #871D81
triadic
#581D87 #87581D #1D8758
tetradic
#581D87 #87231D #4C871D #1D8187
square
#581D87 #87231D #4C871D #1D8187
split-complementary
#581D87 #81871D #1D8723
monochromatic
#160722 #371255 #581D87 #7928B9 #9747D7

Accessibility & contrast

On white

10.82
#581D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#581D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581D87
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581D87#FFFFFF#000000##FFFFFF
##581D871.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003D85
Tritanopia (blue-blind)
#4F3851
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #581d87;
/* rgb */ color: rgb(88, 29, 135);
/* oklch */ color: oklch(38.2% 0.165 304.9);
Tailwind
colors: {
  custom: {
    50: '#8c60ab',
    500: '#581d87',
    950: '#000000',
  },
}
SCSS
$custom: #581d87;
$custom-light: #8c60ab;
$custom-dark: #000000;
JSON
{
  "hex": "#581d87",
  "rgb": {
    "r": 88,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 273.396,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38175,
    "c": 0.16501,
    "h": 304.9
  },
  "luminance": 0.04703
}

Semantic roles & 50–950 ramp

primary
#581D87
secondary
#79B946
accent
#E8408A
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0D0510
muted
#7D797F

Preview Lab

Preview with #581D87

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

Preview Lab → · Contrast checker → · Palette generator →

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