#581B79#581B79

#581B79 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.153 H 310.5°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#581B79
RGBrgb(88, 27, 121)
HSLhsl(279, 64%, 29%)
HSVhsv(279, 78%, 47%)
CMYKcmyk(27.3%, 77.7%, 0%, 52.5%)
CIE-LABlab(24.45, 43.56, -41.02)
CIE-LCHlch(24.45, 59.83, 316.72°)
OKLaboklab(36.82% 0.0993 -0.1162)
OKLCHoklch(36.82% 0.153 310.5)
XYZxyz(7.8670, 4.2392, 18.4893)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581B79 #3C791B
analogous
#291B79 #581B79 #791B6B
triadic
#581B79 #79581B #1B7958
tetradic
#581B79 #79291B #3C791B #1B6B79
square
#581B79 #79291B #3C791B #1B6B79
split-complementary
#581B79 #6B791B #1B7929
monochromatic
#120619 #341047 #581B79 #7C26AB #9E3BD3

Accessibility & contrast

On white

11.36
#581B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581B79
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581B79#FFFFFF#000000##FFFFFF
##581B791.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377C
Deuteranopia (green-blind)
#063B77
Tritanopia (blue-blind)
#533149
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #581b79;
/* rgb */ color: rgb(88, 27, 121);
/* oklch */ color: oklch(36.8% 0.153 310.5);
Tailwind
colors: {
  custom: {
    50: '#8b5ea0',
    500: '#581b79',
    950: '#000000',
  },
}
SCSS
$custom: #581b79;
$custom-light: #8b5ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#581b79",
  "rgb": {
    "r": 88,
    "g": 27,
    "b": 121
  },
  "hsl": {
    "h": 278.936,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.36818,
    "c": 0.15284,
    "h": 310.5
  },
  "luminance": 0.04239
}

Semantic roles & 50–950 ramp

primary
#581B79
secondary
#68AD43
accent
#E7417B
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050F
muted
#7D797E

Preview Lab

Preview with #581B79

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

Preview Lab → · Contrast checker → · Palette generator →

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