#581C84#581C84

#581C84 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.163 H 306.1°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#581C84
RGBrgb(88, 28, 132)
HSLhsl(275, 65%, 31%)
HSVhsv(275, 79%, 52%)
CMYKcmyk(33.3%, 78.8%, 0%, 48.2%)
CIE-LABlab(25.48, 45.72, -46.30)
CIE-LCHlch(25.48, 65.07, 314.64°)
OKLaboklab(37.82% 0.096 -0.1317)
OKLCHoklch(37.82% 0.163 306.1)
XYZxyz(8.6037, 4.5712, 22.2544)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581C84 #48841C
analogous
#241C84 #581C84 #841C7C
triadic
#581C84 #84581C #1C8458
tetradic
#581C84 #84241C #48841C #1C7C84
square
#581C84 #84241C #48841C #1C7C84
split-complementary
#581C84 #7C841C #1C8424
monochromatic
#15071F #361152 #581C84 #7A27B6 #9943D7

Accessibility & contrast

On white

10.97
#581C84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#581C84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581C84
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581C84#FFFFFF#000000##FFFFFF
##581C841.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B87
Deuteranopia (green-blind)
#003D82
Tritanopia (blue-blind)
#50364F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #581c84;
/* rgb */ color: rgb(88, 28, 132);
/* oklch */ color: oklch(37.8% 0.163 306.1);
Tailwind
colors: {
  custom: {
    50: '#8c5fa9',
    500: '#581c84',
    950: '#000000',
  },
}
SCSS
$custom: #581c84;
$custom-light: #8c5fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#581c84",
  "rgb": {
    "r": 88,
    "g": 28,
    "b": 132
  },
  "hsl": {
    "h": 274.615,
    "s": 65,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37821,
    "c": 0.16299,
    "h": 306.1
  },
  "luminance": 0.04571
}

Semantic roles & 50–950 ramp

primary
#581C84
secondary
#75B745
accent
#E84087
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0D0510
muted
#7D797F

Preview Lab

Preview with #581C84

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

Preview Lab → · Contrast checker → · Palette generator →

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