#581D79#581D79

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

Color values

HEX#581D79
RGBrgb(88, 29, 121)
HSLhsl(278, 61%, 29%)
HSVhsv(278, 76%, 47%)
CMYKcmyk(27.3%, 76%, 0%, 52.5%)
CIE-LABlab(24.75, 42.71, -40.53)
CIE-LCHlch(24.75, 58.88, 316.50°)
OKLaboklab(37.03% 0.0973 -0.1148)
OKLCHoklch(37.03% 0.15 310.3)
XYZxyz(7.9144, 4.3341, 18.5051)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581D79 #3E791D
analogous
#2A1D79 #581D79 #791D6C
triadic
#581D79 #79581D #1D7958
tetradic
#581D79 #792A1D #3E791D #1D6C79
square
#581D79 #792A1D #3E791D #1D6C79
split-complementary
#581D79 #6C791D #1D792A
monochromatic
#120619 #341148 #581D79 #7C29AA #9D3FD1

Accessibility & contrast

On white

11.25
#581D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#581D79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581D79
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581D79#FFFFFF#000000##FFFFFF
##581D791.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387C
Deuteranopia (green-blind)
#093C77
Tritanopia (blue-blind)
#533249
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #581d79;
/* rgb */ color: rgb(88, 29, 121);
/* oklch */ color: oklch(37.0% 0.150 310.3);
Tailwind
colors: {
  custom: {
    50: '#8b5fa0',
    500: '#581d79',
    950: '#000000',
  },
}
SCSS
$custom: #581d79;
$custom-light: #8b5fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#581d79",
  "rgb": {
    "r": 88,
    "g": 29,
    "b": 121
  },
  "hsl": {
    "h": 278.478,
    "s": 61.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3703,
    "c": 0.15045,
    "h": 310.3
  },
  "luminance": 0.04334
}

Semantic roles & 50–950 ramp

primary
#581D79
secondary
#6AAD45
accent
#E4437D
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050F
muted
#7D797E

Preview Lab

Preview with #581D79

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

Preview Lab → · Contrast checker → · Palette generator →

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