#581C7F#581C7F

#581C7F is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.158 H 308.0°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#581C7F
RGBrgb(88, 28, 127)
HSLhsl(276, 64%, 30%)
HSVhsv(276, 78%, 50%)
CMYKcmyk(30.7%, 78%, 0%, 50.2%)
CIE-LABlab(25.07, 44.54, -43.81)
CIE-LCHlch(25.07, 62.48, 315.47°)
OKLaboklab(37.41% 0.0971 -0.1244)
OKLCHoklch(37.41% 0.158 308)
XYZxyz(8.2697, 4.4376, 20.4955)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581C7F #437F1C
analogous
#271C7F #581C7F #7F1C74
triadic
#581C7F #7F581C #1C7F58
tetradic
#581C7F #7F271C #437F1C #1C747F
square
#581C7F #7F271C #437F1C #1C747F
split-complementary
#581C7F #747F1C #1C7F27
monochromatic
#13061B #35114D #581C7F #7B27B1 #9A40D5

Accessibility & contrast

On white

11.13
#581C7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#581C7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581C7F
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581C7F#FFFFFF#000000##FFFFFF
##581C7F1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#003C7D
Tritanopia (blue-blind)
#52344C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #581c7f;
/* rgb */ color: rgb(88, 28, 127);
/* oklch */ color: oklch(37.4% 0.158 308.0);
Tailwind
colors: {
  custom: {
    50: '#8b5fa5',
    500: '#581c7f',
    950: '#000000',
  },
}
SCSS
$custom: #581c7f;
$custom-light: #8b5fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#581c7f",
  "rgb": {
    "r": 88,
    "g": 28,
    "b": 127
  },
  "hsl": {
    "h": 276.364,
    "s": 63.871,
    "l": 30.392
  },
  "oklch": {
    "l": 0.37406,
    "c": 0.15783,
    "h": 308
  },
  "luminance": 0.04438
}

Semantic roles & 50–950 ramp

primary
#581C7F
secondary
#70B344
accent
#E74182
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #581C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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