#581C7A#581C7A

#581C7A is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.153 H 310.0°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#581C7A
RGBrgb(88, 28, 122)
HSLhsl(278, 63%, 29%)
HSVhsv(278, 77%, 48%)
CMYKcmyk(27.9%, 77%, 0%, 52.2%)
CIE-LABlab(24.67, 43.37, -41.29)
CIE-LCHlch(24.67, 59.88, 316.41°)
OKLaboklab(37% 0.0981 -0.117)
OKLCHoklch(37% 0.153 310)
XYZxyz(7.9519, 4.3105, 18.8217)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581C7A #3E7A1C
analogous
#291C7A #581C7A #7A1C6D
triadic
#581C7A #7A581C #1C7A58
tetradic
#581C7A #7A291C #3E7A1C #1C6D7A
square
#581C7A #7A291C #3E7A1C #1C6D7A
split-complementary
#581C7A #6D7A1C #1C7A29
monochromatic
#120619 #341148 #581C7A #7C27AC #9D3ED3

Accessibility & contrast

On white

11.28
#581C7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#581C7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581C7A
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581C7A#FFFFFF#000000##FFFFFF
##581C7A1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387D
Deuteranopia (green-blind)
#053B78
Tritanopia (blue-blind)
#53324A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #581c7a;
/* rgb */ color: rgb(88, 28, 122);
/* oklch */ color: oklch(37.0% 0.153 310.0);
Tailwind
colors: {
  custom: {
    50: '#8b5fa1',
    500: '#581c7a',
    950: '#000000',
  },
}
SCSS
$custom: #581c7a;
$custom-light: #8b5fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#581c7a",
  "rgb": {
    "r": 88,
    "g": 28,
    "b": 122
  },
  "hsl": {
    "h": 278.298,
    "s": 62.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.37002,
    "c": 0.15269,
    "h": 310
  },
  "luminance": 0.0431
}

Semantic roles & 50–950 ramp

primary
#581C7A
secondary
#6AAE44
accent
#E6427D
background
#F8F5FA
surface
#F0EAF3
border
#CBC6CD
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #581C7A

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

Preview Lab → · Contrast checker → · Palette generator →

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