#581A78#581A78

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

Color values

HEX#581A78
RGBrgb(88, 26, 120)
HSLhsl(280, 64%, 29%)
HSVhsv(280, 78%, 47%)
CMYKcmyk(26.7%, 78.3%, 0%, 52.9%)
CIE-LABlab(24.23, 43.74, -40.74)
CIE-LCHlch(24.23, 59.77, 317.04°)
OKLaboklab(36.64% 0.1005 -0.1154)
OKLCHoklch(36.64% 0.153 311)
XYZxyz(7.7834, 4.1698, 18.1605)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581A78 #3A781A
analogous
#291A78 #581A78 #781A69
triadic
#581A78 #78581A #1A7858
tetradic
#581A78 #78291A #3A781A #1A6978
square
#581A78 #78291A #3A781A #1A6978
split-complementary
#581A78 #69781A #1A7829
monochromatic
#120519 #330F46 #581A78 #7D25AA #9F38D4

Accessibility & contrast

On white

11.45
#581A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#581A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581A78
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581A78#FFFFFF#000000##FFFFFF
##581A781.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377B
Deuteranopia (green-blind)
#063B76
Tritanopia (blue-blind)
#543048
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #581a78;
/* rgb */ color: rgb(88, 26, 120);
/* oklch */ color: oklch(36.6% 0.153 311.0);
Tailwind
colors: {
  custom: {
    50: '#8b5ea0',
    500: '#581a78',
    950: '#000000',
  },
}
SCSS
$custom: #581a78;
$custom-light: #8b5ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#581a78",
  "rgb": {
    "r": 88,
    "g": 26,
    "b": 120
  },
  "hsl": {
    "h": 279.574,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.36636,
    "c": 0.15299,
    "h": 311
  },
  "luminance": 0.0417
}

Semantic roles & 50–950 ramp

primary
#581A78
secondary
#66AC41
accent
#E74079
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050F
muted
#7D797E

Preview Lab

Preview with #581A78

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

Preview Lab → · Contrast checker → · Palette generator →

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