#581D7D#581D7D

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

Color values

HEX#581D7D
RGBrgb(88, 29, 125)
HSLhsl(277, 62%, 30%)
HSVhsv(277, 77%, 49%)
CMYKcmyk(29.6%, 76.8%, 0%, 51%)
CIE-LABlab(25.06, 43.64, -42.57)
CIE-LCHlch(25.06, 60.96, 315.72°)
OKLaboklab(37.35% 0.0965 -0.1208)
OKLCHoklch(37.35% 0.155 308.6)
XYZxyz(8.1648, 4.4342, 19.8238)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581D7D #427D1D
analogous
#281D7D #581D7D #7D1D72
triadic
#581D7D #7D581D #1D7D58
tetradic
#581D7D #7D281D #427D1D #1D727D
square
#581D7D #7D281D #427D1D #1D727D
split-complementary
#581D7D #727D1D #1D7D28
monochromatic
#12061A #35114B #581D7D #7B29AF #9B41D3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##581D7D#FFFFFF#000000##FFFFFF
##581D7D1.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)
#003980
Deuteranopia (green-blind)
#003C7B
Tritanopia (blue-blind)
#52344B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #581d7d;
/* rgb */ color: rgb(88, 29, 125);
/* oklch */ color: oklch(37.3% 0.155 308.6);
Tailwind
colors: {
  custom: {
    50: '#8b5fa3',
    500: '#581d7d',
    950: '#000000',
  },
}
SCSS
$custom: #581d7d;
$custom-light: #8b5fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#581d7d",
  "rgb": {
    "r": 88,
    "g": 29,
    "b": 125
  },
  "hsl": {
    "h": 276.875,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.37348,
    "c": 0.1546,
    "h": 308.6
  },
  "luminance": 0.04434
}

Semantic roles & 50–950 ramp

primary
#581D7D
secondary
#6FB145
accent
#E54281
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #581D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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