#581D9A#581D9A

#581D9A is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.9% C 0.185 H 298.8°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#581D9A
RGBrgb(88, 29, 154)
HSLhsl(268, 68%, 36%)
HSVhsv(268, 81%, 60%)
CMYKcmyk(42.9%, 81.2%, 0%, 39.6%)
CIE-LABlab(27.54, 50.69, -56.57)
CIE-LCHlch(27.54, 75.96, 311.86°)
OKLaboklab(39.85% 0.089 -0.1619)
OKLCHoklch(39.85% 0.185 298.8)
XYZxyz(10.2951, 5.2864, 31.0436)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581D9A #5F9A1D
analogous
#1D209A #581D9A #961D9A
triadic
#581D9A #9A581D #1D9A58
tetradic
#581D9A #9A1D20 #5F9A1D #1D9A96
square
#581D9A #9A1D20 #5F9A1D #1D9A96
split-complementary
#581D9A #9A961D #209A1D
monochromatic
#1D0A33 #3B1366 #581D9A #7527CE #9553DF

Accessibility & contrast

On white

10.21
#581D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#581D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581D9A
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581D9A#FFFFFF#000000##FFFFFF
##581D9A1.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419D
Deuteranopia (green-blind)
#004098
Tritanopia (blue-blind)
#47405C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #581d9a;
/* rgb */ color: rgb(88, 29, 154);
/* oklch */ color: oklch(39.9% 0.185 298.8);
Tailwind
colors: {
  custom: {
    50: '#8e61b9',
    500: '#581d9a',
    950: '#000000',
  },
}
SCSS
$custom: #581d9a;
$custom-light: #8e61b9;
$custom-dark: #000000;
JSON
{
  "hex": "#581d9a",
  "rgb": {
    "r": 88,
    "g": 29,
    "b": 154
  },
  "hsl": {
    "h": 268.32,
    "s": 68.306,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39852,
    "c": 0.18474,
    "h": 298.8
  },
  "luminance": 0.05287
}

Semantic roles & 50–950 ramp

primary
#581D9A
secondary
#8DC251
accent
#EB3D99
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #581D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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