#581D89#581D89

#581D89 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.3% C 0.167 H 304.2°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#581D89
RGBrgb(88, 29, 137)
HSLhsl(273, 65%, 33%)
HSVhsv(273, 79%, 54%)
CMYKcmyk(35.8%, 78.8%, 0%, 46.3%)
CIE-LABlab(26.04, 46.51, -48.51)
CIE-LCHlch(26.04, 67.21, 313.79°)
OKLaboklab(38.35% 0.0938 -0.1383)
OKLCHoklch(38.35% 0.167 304.2)
XYZxyz(8.9782, 4.7596, 24.1078)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581D89 #4E891D
analogous
#221D89 #581D89 #891D84
triadic
#581D89 #89581D #1D8958
tetradic
#581D89 #89221D #4E891D #1D8489
square
#581D89 #89221D #4E891D #1D8489
split-complementary
#581D89 #84891D #1D8922
monochromatic
#170824 #381256 #581D89 #7828BC #9748D8

Accessibility & contrast

On white

10.76
#581D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#581D89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581D89
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581D89#FFFFFF#000000##FFFFFF
##581D891.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8C
Deuteranopia (green-blind)
#003E87
Tritanopia (blue-blind)
#4E3952
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #581d89;
/* rgb */ color: rgb(88, 29, 137);
/* oklch */ color: oklch(38.3% 0.167 304.2);
Tailwind
colors: {
  custom: {
    50: '#8c60ac',
    500: '#581d89',
    950: '#000000',
  },
}
SCSS
$custom: #581d89;
$custom-light: #8c60ac;
$custom-dark: #000000;
JSON
{
  "hex": "#581d89",
  "rgb": {
    "r": 88,
    "g": 29,
    "b": 137
  },
  "hsl": {
    "h": 272.778,
    "s": 65.06,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38345,
    "c": 0.16708,
    "h": 304.2
  },
  "luminance": 0.0476
}

Semantic roles & 50–950 ramp

primary
#581D89
secondary
#7CBA47
accent
#E8408C
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #581D89

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

Preview Lab → · Contrast checker → · Palette generator →

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