#581D7F#581D7F

#581D7F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.157 H 307.8°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#581D7F
RGBrgb(88, 29, 127)
HSLhsl(276, 63%, 31%)
HSVhsv(276, 77%, 50%)
CMYKcmyk(30.7%, 77.2%, 0%, 50.2%)
CIE-LABlab(25.22, 44.11, -43.57)
CIE-LCHlch(25.22, 62.00, 315.35°)
OKLaboklab(37.51% 0.0961 -0.1237)
OKLCHoklch(37.51% 0.157 307.8)
XYZxyz(8.2938, 4.4859, 20.5035)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581D7F #447F1D
analogous
#271D7F #581D7F #7F1D75
triadic
#581D7F #7F581D #1D7F58
tetradic
#581D7F #7F271D #447F1D #1D757F
square
#581D7F #7F271D #447F1D #1D757F
split-complementary
#581D7F #757F1D #1D7F27
monochromatic
#13061B #35124D #581D7F #7B28B1 #9A42D4

Accessibility & contrast

On white

11.07
#581D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#581D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581D7F
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581D7F#FFFFFF#000000##FFFFFF
##581D7F1.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#003C7D
Tritanopia (blue-blind)
#52354D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #581d7f;
/* rgb */ color: rgb(88, 29, 127);
/* oklch */ color: oklch(37.5% 0.157 307.8);
Tailwind
colors: {
  custom: {
    50: '#8b60a5',
    500: '#581d7f',
    950: '#000000',
  },
}
SCSS
$custom: #581d7f;
$custom-light: #8b60a5;
$custom-dark: #000000;
JSON
{
  "hex": "#581d7f",
  "rgb": {
    "r": 88,
    "g": 29,
    "b": 127
  },
  "hsl": {
    "h": 276.122,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3751,
    "c": 0.15668,
    "h": 307.8
  },
  "luminance": 0.04486
}

Semantic roles & 50–950 ramp

primary
#581D7F
secondary
#71B245
accent
#E64283
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #581D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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