#581D82#581D82

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

Color values

HEX#581D82
RGBrgb(88, 29, 130)
HSLhsl(275, 64%, 31%)
HSVhsv(275, 78%, 51%)
CMYKcmyk(32.3%, 77.7%, 0%, 49%)
CIE-LABlab(25.46, 44.83, -45.07)
CIE-LCHlch(25.46, 63.57, 314.85°)
OKLaboklab(37.76% 0.0955 -0.1281)
OKLCHoklch(37.76% 0.16 306.7)
XYZxyz(8.4923, 4.5652, 21.5486)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581D82 #47821D
analogous
#261D82 #581D82 #821D79
triadic
#581D82 #82581D #1D8258
tetradic
#581D82 #82261D #47821D #1D7982
square
#581D82 #82261D #47821D #1D7982
split-complementary
#581D82 #79821D #1D8226
monochromatic
#14071E #361250 #581D82 #7A28B4 #9944D5

Accessibility & contrast

On white

10.98
#581D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581D82
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581D82#FFFFFF#000000##FFFFFF
##581D821.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A85
Deuteranopia (green-blind)
#003D80
Tritanopia (blue-blind)
#51364E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #581d82;
/* rgb */ color: rgb(88, 29, 130);
/* oklch */ color: oklch(37.8% 0.160 306.7);
Tailwind
colors: {
  custom: {
    50: '#8c60a7',
    500: '#581d82',
    950: '#000000',
  },
}
SCSS
$custom: #581d82;
$custom-light: #8c60a7;
$custom-dark: #000000;
JSON
{
  "hex": "#581d82",
  "rgb": {
    "r": 88,
    "g": 29,
    "b": 130
  },
  "hsl": {
    "h": 275.05,
    "s": 63.522,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37757,
    "c": 0.15981,
    "h": 306.7
  },
  "luminance": 0.04565
}

Semantic roles & 50–950 ramp

primary
#581D82
secondary
#74B546
accent
#E74186
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #581D82

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

Preview Lab → · Contrast checker → · Palette generator →

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