#581B78#581B78

#581B78 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.152 H 310.9°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#581B78
RGBrgb(88, 27, 120)
HSLhsl(279, 63%, 29%)
HSVhsv(279, 78%, 47%)
CMYKcmyk(26.7%, 77.5%, 0%, 52.9%)
CIE-LABlab(24.37, 43.33, -40.50)
CIE-LCHlch(24.37, 59.31, 316.93°)
OKLaboklab(36.74% 0.0995 -0.1147)
OKLCHoklch(36.74% 0.152 310.9)
XYZxyz(7.8060, 4.2148, 18.1680)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581B78 #3B781B
analogous
#2A1B78 #581B78 #781B6A
triadic
#581B78 #78581B #1B7858
tetradic
#581B78 #782A1B #3B781B #1B6A78
square
#581B78 #782A1B #3B781B #1B6A78
split-complementary
#581B78 #6A781B #1B782A
monochromatic
#120619 #331046 #581B78 #7D26AA #9E3BD3

Accessibility & contrast

On white

11.39
#581B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#581B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581B78
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581B78#FFFFFF#000000##FFFFFF
##581B781.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377B
Deuteranopia (green-blind)
#083B76
Tritanopia (blue-blind)
#543148
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #581b78;
/* rgb */ color: rgb(88, 27, 120);
/* oklch */ color: oklch(36.7% 0.152 310.9);
Tailwind
colors: {
  custom: {
    50: '#8b5ea0',
    500: '#581b78',
    950: '#000000',
  },
}
SCSS
$custom: #581b78;
$custom-light: #8b5ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#581b78",
  "rgb": {
    "r": 88,
    "g": 27,
    "b": 120
  },
  "hsl": {
    "h": 279.355,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.36738,
    "c": 0.15183,
    "h": 310.9
  },
  "luminance": 0.04215
}

Semantic roles & 50–950 ramp

primary
#581B78
secondary
#67AC43
accent
#E6417A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050F
muted
#7D797E

Preview Lab

Preview with #581B78

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

Preview Lab → · Contrast checker → · Palette generator →

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