#581B7A#581B7A

#581B7A is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.9% C 0.154 H 310.1°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#581B7A
RGBrgb(88, 27, 122)
HSLhsl(279, 64%, 29%)
HSVhsv(279, 78%, 48%)
CMYKcmyk(27.9%, 77.9%, 0%, 52.2%)
CIE-LABlab(24.53, 43.79, -41.52)
CIE-LCHlch(24.53, 60.35, 316.52°)
OKLaboklab(36.9% 0.0991 -0.1177)
OKLCHoklch(36.9% 0.154 310.1)
XYZxyz(7.9286, 4.2639, 18.8139)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581B7A #3D7A1B
analogous
#291B7A #581B7A #7A1B6D
triadic
#581B7A #7A581B #1B7A58
tetradic
#581B7A #7A291B #3D7A1B #1B6D7A
square
#581B7A #7A291B #3D7A1B #1B6D7A
split-complementary
#581B7A #6D7A1B #1B7A29
monochromatic
#120619 #341048 #581B7A #7C26AC #9D3CD4

Accessibility & contrast

On white

11.33
#581B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581B7A
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581B7A#FFFFFF#000000##FFFFFF
##581B7A1.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387D
Deuteranopia (green-blind)
#033B78
Tritanopia (blue-blind)
#533149
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #581b7a;
/* rgb */ color: rgb(88, 27, 122);
/* oklch */ color: oklch(36.9% 0.154 310.1);
Tailwind
colors: {
  custom: {
    50: '#8b5ea1',
    500: '#581b7a',
    950: '#000000',
  },
}
SCSS
$custom: #581b7a;
$custom-light: #8b5ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#581b7a",
  "rgb": {
    "r": 88,
    "g": 27,
    "b": 122
  },
  "hsl": {
    "h": 278.526,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.36898,
    "c": 0.15386,
    "h": 310.1
  },
  "luminance": 0.04264
}

Semantic roles & 50–950 ramp

primary
#581B7A
secondary
#69AE43
accent
#E7417C
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #581B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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