#581B86#581B86

#581B86 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.166 H 305.5°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#581B86
RGBrgb(88, 27, 134)
HSLhsl(274, 66%, 32%)
HSVhsv(274, 80%, 53%)
CMYKcmyk(34.3%, 79.9%, 0%, 47.5%)
CIE-LABlab(25.50, 46.60, -47.51)
CIE-LCHlch(25.50, 66.55, 314.45°)
OKLaboklab(37.89% 0.0964 -0.1353)
OKLCHoklch(37.89% 0.166 305.5)
XYZxyz(8.7185, 4.5799, 22.9743)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581B86 #49861B
analogous
#231B86 #581B86 #861B7F
triadic
#581B86 #86581B #1B8658
tetradic
#581B86 #86231B #49861B #1B7F86
square
#581B86 #86231B #49861B #1B7F86
split-complementary
#581B86 #7F861B #1B8623
monochromatic
#150620 #371153 #581B86 #7925B9 #9842D9

Accessibility & contrast

On white

10.96
#581B86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#581B86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581B86
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581B86#FFFFFF#000000##FFFFFF
##581B861.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B89
Deuteranopia (green-blind)
#003D84
Tritanopia (blue-blind)
#4F3750
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #581b86;
/* rgb */ color: rgb(88, 27, 134);
/* oklch */ color: oklch(37.9% 0.166 305.5);
Tailwind
colors: {
  custom: {
    50: '#8c5faa',
    500: '#581b86',
    950: '#000000',
  },
}
SCSS
$custom: #581b86;
$custom-light: #8c5faa;
$custom-dark: #000000;
JSON
{
  "hex": "#581b86",
  "rgb": {
    "r": 88,
    "g": 27,
    "b": 134
  },
  "hsl": {
    "h": 274.206,
    "s": 66.46,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37891,
    "c": 0.1661,
    "h": 305.5
  },
  "luminance": 0.0458
}

Semantic roles & 50–950 ramp

primary
#581B86
secondary
#76B944
accent
#E93E88
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0D0510
muted
#7D797F

Preview Lab

Preview with #581B86

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

Preview Lab → · Contrast checker → · Palette generator →

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