#581D78#581D78

#581D78 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.149 H 310.7°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#581D78
RGBrgb(88, 29, 120)
HSLhsl(279, 61%, 29%)
HSVhsv(279, 76%, 47%)
CMYKcmyk(26.7%, 75.8%, 0%, 52.9%)
CIE-LABlab(24.67, 42.47, -40.02)
CIE-LCHlch(24.67, 58.36, 316.71°)
OKLaboklab(36.95% 0.0974 -0.1133)
OKLCHoklch(36.95% 0.149 310.7)
XYZxyz(7.8534, 4.3097, 18.1838)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581D78 #3D781D
analogous
#2B1D78 #581D78 #781D6B
triadic
#581D78 #78581D #1D7858
tetradic
#581D78 #782B1D #3D781D #1D6B78
square
#581D78 #782B1D #3D781D #1D6B78
split-complementary
#581D78 #6B781D #1D782B
monochromatic
#120619 #341147 #581D78 #7C29A9 #9D3FD1

Accessibility & contrast

On white

11.28
#581D78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#581D78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581D78
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581D78#FFFFFF#000000##FFFFFF
##581D781.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387B
Deuteranopia (green-blind)
#0C3C76
Tritanopia (blue-blind)
#543249
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #581d78;
/* rgb */ color: rgb(88, 29, 120);
/* oklch */ color: oklch(37.0% 0.149 310.7);
Tailwind
colors: {
  custom: {
    50: '#8b5fa0',
    500: '#581d78',
    950: '#000000',
  },
}
SCSS
$custom: #581d78;
$custom-light: #8b5fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#581d78",
  "rgb": {
    "r": 88,
    "g": 29,
    "b": 120
  },
  "hsl": {
    "h": 278.901,
    "s": 61.074,
    "l": 29.216
  },
  "oklch": {
    "l": 0.36951,
    "c": 0.14942,
    "h": 310.7
  },
  "luminance": 0.0431
}

Semantic roles & 50–950 ramp

primary
#581D78
secondary
#69AC45
accent
#E4447C
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050F
muted
#7D797E

Preview Lab

Preview with #581D78

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

Preview Lab → · Contrast checker → · Palette generator →

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