#581A81#581A81

#581A81 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.162 H 307.4°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#581A81
RGBrgb(88, 26, 129)
HSLhsl(276, 66%, 30%)
HSVhsv(276, 80%, 51%)
CMYKcmyk(31.8%, 79.8%, 0%, 49.4%)
CIE-LABlab(24.95, 45.82, -45.27)
CIE-LCHlch(24.95, 64.41, 315.35°)
OKLaboklab(37.37% 0.0985 -0.1287)
OKLCHoklch(37.37% 0.162 307.4)
XYZxyz(8.3555, 4.3986, 21.1735)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581A81 #43811A
analogous
#251A81 #581A81 #811A76
triadic
#581A81 #81581A #1A8158
tetradic
#581A81 #81251A #43811A #1A7681
square
#581A81 #81251A #43811A #1A7681
split-complementary
#581A81 #76811A #1A8125
monochromatic
#13051B #35104E #581A81 #7B24B4 #9A3DD8

Accessibility & contrast

On white

11.17
#581A81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#581A81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581A81
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581A81#FFFFFF#000000##FFFFFF
##581A811.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003984
Deuteranopia (green-blind)
#003C7F
Tritanopia (blue-blind)
#51344D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #581a81;
/* rgb */ color: rgb(88, 26, 129);
/* oklch */ color: oklch(37.4% 0.162 307.4);
Tailwind
colors: {
  custom: {
    50: '#8c5ea6',
    500: '#581a81',
    950: '#000000',
  },
}
SCSS
$custom: #581a81;
$custom-light: #8c5ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#581a81",
  "rgb": {
    "r": 88,
    "g": 26,
    "b": 129
  },
  "hsl": {
    "h": 276.117,
    "s": 66.452,
    "l": 30.392
  },
  "oklch": {
    "l": 0.37372,
    "c": 0.16207,
    "h": 307.4
  },
  "luminance": 0.04398
}

Semantic roles & 50–950 ramp

primary
#581A81
secondary
#70B542
accent
#E93E82
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #581A81

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

Preview Lab → · Contrast checker → · Palette generator →

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