#581A7A#581A7A

#581A7A is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.155 H 310.2°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#581A7A
RGBrgb(88, 26, 122)
HSLhsl(279, 65%, 29%)
HSVhsv(279, 79%, 48%)
CMYKcmyk(27.9%, 78.7%, 0%, 52.2%)
CIE-LABlab(24.38, 44.20, -41.76)
CIE-LCHlch(24.38, 60.81, 316.63°)
OKLaboklab(36.8% 0.1001 -0.1184)
OKLCHoklch(36.8% 0.155 310.2)
XYZxyz(7.9061, 4.2188, 18.8064)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581A7A #3C7A1A
analogous
#281A7A #581A7A #7A1A6C
triadic
#581A7A #7A581A #1A7A58
tetradic
#581A7A #7A281A #3C7A1A #1A6C7A
square
#581A7A #7A281A #3C7A1A #1A6C7A
split-complementary
#581A7A #6C7A1A #1A7A28
monochromatic
#120519 #340F48 #581A7A #7C25AC #9E39D5

Accessibility & contrast

On white

11.39
#581A7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#581A7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581A7A
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581A7A#FFFFFF#000000##FFFFFF
##581A7A1.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #581a7a;
/* rgb */ color: rgb(88, 26, 122);
/* oklch */ color: oklch(36.8% 0.155 310.2);
Tailwind
colors: {
  custom: {
    50: '#8b5ea1',
    500: '#581a7a',
    950: '#000000',
  },
}
SCSS
$custom: #581a7a;
$custom-light: #8b5ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#581a7a",
  "rgb": {
    "r": 88,
    "g": 26,
    "b": 122
  },
  "hsl": {
    "h": 278.75,
    "s": 64.865,
    "l": 29.02
  },
  "oklch": {
    "l": 0.36797,
    "c": 0.155,
    "h": 310.2
  },
  "luminance": 0.04219
}

Semantic roles & 50–950 ramp

primary
#581A7A
secondary
#68AE41
accent
#E8407B
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #581A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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