#581E78#581E78

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

Color values

HEX#581E78
RGBrgb(88, 30, 120)
HSLhsl(279, 60%, 29%)
HSVhsv(279, 75%, 47%)
CMYKcmyk(26.7%, 75%, 0%, 52.9%)
CIE-LABlab(24.83, 42.03, -39.77)
CIE-LCHlch(24.83, 57.86, 316.59°)
OKLaboklab(37.06% 0.0964 -0.1125)
OKLCHoklch(37.06% 0.148 310.6)
XYZxyz(7.8783, 4.3595, 18.1921)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581E78 #3E781E
analogous
#2B1E78 #581E78 #781E6B
triadic
#581E78 #78581E #1E7858
tetradic
#581E78 #782B1E #3E781E #1E6B78
square
#581E78 #782B1E #3E781E #1E6B78
split-complementary
#581E78 #6B781E #1E782B
monochromatic
#120618 #341247 #581E78 #7C2AA9 #9D41CF

Accessibility & contrast

On white

11.22
#581E78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581E78
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581E78#FFFFFF#000000##FFFFFF
##581E781.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #581e78;
/* rgb */ color: rgb(88, 30, 120);
/* oklch */ color: oklch(37.1% 0.148 310.6);
Tailwind
colors: {
  custom: {
    50: '#8b60a0',
    500: '#581e78',
    950: '#000000',
  },
}
SCSS
$custom: #581e78;
$custom-light: #8b60a0;
$custom-dark: #000000;
JSON
{
  "hex": "#581e78",
  "rgb": {
    "r": 88,
    "g": 30,
    "b": 120
  },
  "hsl": {
    "h": 278.667,
    "s": 60,
    "l": 29.412
  },
  "oklch": {
    "l": 0.37062,
    "c": 0.14816,
    "h": 310.6
  },
  "luminance": 0.04359
}

Semantic roles & 50–950 ramp

primary
#581E78
secondary
#6AAC46
accent
#E3457D
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050F
muted
#7D797E

Preview Lab

Preview with #581E78

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

Preview Lab → · Contrast checker → · Palette generator →

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