#581B84#581B84

#581B84 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.164 H 306.2°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#581B84
RGBrgb(88, 27, 132)
HSLhsl(275, 66%, 31%)
HSVhsv(275, 80%, 52%)
CMYKcmyk(33.3%, 79.5%, 0%, 48.2%)
CIE-LABlab(25.34, 46.13, -46.53)
CIE-LCHlch(25.34, 65.52, 314.75°)
OKLaboklab(37.72% 0.0969 -0.1324)
OKLCHoklch(37.72% 0.164 306.2)
XYZxyz(8.5804, 4.5246, 22.2466)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581B84 #47841B
analogous
#231B84 #581B84 #841B7B
triadic
#581B84 #84581B #1B8458
tetradic
#581B84 #84231B #47841B #1B7B84
square
#581B84 #84231B #47841B #1B7B84
split-complementary
#581B84 #7B841B #1B8423
monochromatic
#14061E #361151 #581B84 #7A25B7 #9941D8

Accessibility & contrast

On white

11.02
#581B84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#581B84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581B84
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581B84#FFFFFF#000000##FFFFFF
##581B841.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A87
Deuteranopia (green-blind)
#003C82
Tritanopia (blue-blind)
#50364F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #581b84;
/* rgb */ color: rgb(88, 27, 132);
/* oklch */ color: oklch(37.7% 0.164 306.2);
Tailwind
colors: {
  custom: {
    50: '#8c5fa9',
    500: '#581b84',
    950: '#000000',
  },
}
SCSS
$custom: #581b84;
$custom-light: #8c5fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#581b84",
  "rgb": {
    "r": 88,
    "g": 27,
    "b": 132
  },
  "hsl": {
    "h": 274.857,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37721,
    "c": 0.16407,
    "h": 306.2
  },
  "luminance": 0.04525
}

Semantic roles & 50–950 ramp

primary
#581B84
secondary
#74B743
accent
#E93F86
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0D0510
muted
#7D797F

Preview Lab

Preview with #581B84

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

Preview Lab → · Contrast checker → · Palette generator →

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