#581F79#581F79

#581F79 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.148 H 310.0°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#581F79
RGBrgb(88, 31, 121)
HSLhsl(278, 59%, 30%)
HSVhsv(278, 74%, 47%)
CMYKcmyk(27.3%, 74.4%, 0%, 52.5%)
CIE-LABlab(25.06, 41.81, -40.02)
CIE-LCHlch(25.06, 57.88, 316.25°)
OKLaboklab(37.25% 0.0951 -0.1133)
OKLCHoklch(37.25% 0.148 310)
XYZxyz(7.9650, 4.4353, 18.5220)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581F79 #40791F
analogous
#2B1F79 #581F79 #791F6D
triadic
#581F79 #79581F #1F7958
tetradic
#581F79 #792B1F #40791F #1F6D79
square
#581F79 #792B1F #40791F #1F6D79
split-complementary
#581F79 #6D791F #1F792B
monochromatic
#120618 #351348 #581F79 #7B2BAA #9C43CF

Accessibility & contrast

On white

11.13
#581F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#581F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581F79
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581F79#FFFFFF#000000##FFFFFF
##581F791.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397C
Deuteranopia (green-blind)
#0D3C77
Tritanopia (blue-blind)
#53334A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #581f79;
/* rgb */ color: rgb(88, 31, 121);
/* oklch */ color: oklch(37.3% 0.148 310.0);
Tailwind
colors: {
  custom: {
    50: '#8b60a0',
    500: '#581f79',
    950: '#000000',
  },
}
SCSS
$custom: #581f79;
$custom-light: #8b60a0;
$custom-dark: #000000;
JSON
{
  "hex": "#581f79",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 121
  },
  "hsl": {
    "h": 278,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.37253,
    "c": 0.14794,
    "h": 310
  },
  "luminance": 0.04435
}

Semantic roles & 50–950 ramp

primary
#581F79
secondary
#6CAC47
accent
#E2457F
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050F
muted
#7D797E

Preview Lab

Preview with #581F79

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

Preview Lab → · Contrast checker → · Palette generator →

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