#581C78#581C78

#581C78 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.8% C 0.151 H 310.8°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#581C78
RGBrgb(88, 28, 120)
HSLhsl(279, 62%, 29%)
HSVhsv(279, 77%, 47%)
CMYKcmyk(26.7%, 76.7%, 0%, 52.9%)
CIE-LABlab(24.52, 42.91, -40.26)
CIE-LCHlch(24.52, 58.84, 316.82°)
OKLaboklab(36.84% 0.0985 -0.114)
OKLCHoklch(36.84% 0.151 310.8)
XYZxyz(7.8293, 4.2615, 18.1758)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581C78 #3C781C
analogous
#2A1C78 #581C78 #781C6A
triadic
#581C78 #78581C #1C7858
tetradic
#581C78 #782A1C #3C781C #1C6A78
square
#581C78 #782A1C #3C781C #1C6A78
split-complementary
#581C78 #6A781C #1C782A
monochromatic
#120619 #341046 #581C78 #7C28AA #9E3DD2

Accessibility & contrast

On white

11.34
#581C78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#581C78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581C78
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581C78#FFFFFF#000000##FFFFFF
##581C781.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387B
Deuteranopia (green-blind)
#0A3B76
Tritanopia (blue-blind)
#543148
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #581c78;
/* rgb */ color: rgb(88, 28, 120);
/* oklch */ color: oklch(36.8% 0.151 310.8);
Tailwind
colors: {
  custom: {
    50: '#8b5fa0',
    500: '#581c78',
    950: '#000000',
  },
}
SCSS
$custom: #581c78;
$custom-light: #8b5fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#581c78",
  "rgb": {
    "r": 88,
    "g": 28,
    "b": 120
  },
  "hsl": {
    "h": 279.13,
    "s": 62.162,
    "l": 29.02
  },
  "oklch": {
    "l": 0.36843,
    "c": 0.15063,
    "h": 310.8
  },
  "luminance": 0.04261
}

Semantic roles & 50–950 ramp

primary
#581C78
secondary
#68AC44
accent
#E5437B
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050F
muted
#7D797E

Preview Lab

Preview with #581C78

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

Preview Lab → · Contrast checker → · Palette generator →

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