#581D81#581D81

#581D81 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.159 H 307.1°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#581D81
RGBrgb(88, 29, 129)
HSLhsl(275, 63%, 31%)
HSVhsv(275, 78%, 51%)
CMYKcmyk(31.8%, 77.5%, 0%, 49.4%)
CIE-LABlab(25.38, 44.59, -44.57)
CIE-LCHlch(25.38, 63.05, 315.01°)
OKLaboklab(37.67% 0.0957 -0.1267)
OKLCHoklch(37.67% 0.159 307.1)
XYZxyz(8.4255, 4.5385, 21.1968)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581D81 #46811D
analogous
#261D81 #581D81 #811D78
triadic
#581D81 #81581D #1D8158
tetradic
#581D81 #81261D #46811D #1D7881
square
#581D81 #81261D #46811D #1D7881
split-complementary
#581D81 #78811D #1D8126
monochromatic
#14071D #36124F #581D81 #7A28B3 #9944D5

Accessibility & contrast

On white

11.01
#581D81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581D81
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581D81#FFFFFF#000000##FFFFFF
##581D811.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A84
Deuteranopia (green-blind)
#003D7F
Tritanopia (blue-blind)
#51354E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #581d81;
/* rgb */ color: rgb(88, 29, 129);
/* oklch */ color: oklch(37.7% 0.159 307.1);
Tailwind
colors: {
  custom: {
    50: '#8c60a6',
    500: '#581d81',
    950: '#000000',
  },
}
SCSS
$custom: #581d81;
$custom-light: #8c60a6;
$custom-dark: #000000;
JSON
{
  "hex": "#581d81",
  "rgb": {
    "r": 88,
    "g": 29,
    "b": 129
  },
  "hsl": {
    "h": 275.4,
    "s": 63.291,
    "l": 30.98
  },
  "oklch": {
    "l": 0.37674,
    "c": 0.15876,
    "h": 307.1
  },
  "luminance": 0.04538
}

Semantic roles & 50–950 ramp

primary
#581D81
secondary
#73B446
accent
#E64185
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #581D81

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

Preview Lab → · Contrast checker → · Palette generator →

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