#581A7B#581A7B

#581A7B is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.156 H 309.8°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#581A7B
RGBrgb(88, 26, 123)
HSLhsl(278, 65%, 29%)
HSVhsv(278, 79%, 48%)
CMYKcmyk(28.5%, 78.9%, 0%, 51.8%)
CIE-LABlab(24.46, 44.43, -42.26)
CIE-LCHlch(24.46, 61.32, 316.43°)
OKLaboklab(36.88% 0.0999 -0.1199)
OKLCHoklch(36.88% 0.156 309.8)
XYZxyz(7.9683, 4.2437, 19.1344)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581A7B #3D7B1A
analogous
#281A7B #581A7B #7B1A6E
triadic
#581A7B #7B581A #1A7B58
tetradic
#581A7B #7B281A #3D7B1A #1A6E7B
square
#581A7B #7B281A #3D7B1A #1A6E7B
split-complementary
#581A7B #6E7B1A #1A7B28
monochromatic
#120519 #340F48 #581A7B #7C25AE #9D3AD5

Accessibility & contrast

On white

11.36
#581A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581A7B
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581A7B#FFFFFF#000000##FFFFFF
##581A7B1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387E
Deuteranopia (green-blind)
#003B79
Tritanopia (blue-blind)
#53314A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #581a7b;
/* rgb */ color: rgb(88, 26, 123);
/* oklch */ color: oklch(36.9% 0.156 309.8);
Tailwind
colors: {
  custom: {
    50: '#8b5ea2',
    500: '#581a7b',
    950: '#000000',
  },
}
SCSS
$custom: #581a7b;
$custom-light: #8b5ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#581a7b",
  "rgb": {
    "r": 88,
    "g": 26,
    "b": 123
  },
  "hsl": {
    "h": 278.351,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.36878,
    "c": 0.15601,
    "h": 309.8
  },
  "luminance": 0.04244
}

Semantic roles & 50–950 ramp

primary
#581A7B
secondary
#69AF42
accent
#E8407C
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #581A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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