#581D74#581D74

#581D74 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.6% C 0.145 H 312.4°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#581D74
RGBrgb(88, 29, 116)
HSLhsl(281, 60%, 28%)
HSVhsv(281, 75%, 45%)
CMYKcmyk(24.1%, 75%, 0%, 54.5%)
CIE-LABlab(24.37, 41.55, -37.95)
CIE-LCHlch(24.37, 56.27, 317.60°)
OKLaboklab(36.64% 0.098 -0.1072)
OKLCHoklch(36.64% 0.145 312.4)
XYZxyz(7.6157, 4.2146, 16.9319)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581D74 #39741D
analogous
#2C1D74 #581D74 #741D64
triadic
#581D74 #74581D #1D7458
tetradic
#581D74 #742C1D #39741D #1D6474
square
#581D74 #742C1D #39741D #1D6474
split-complementary
#581D74 #64741D #1D742C
monochromatic
#130618 #331143 #581D74 #7D29A5 #A03DCE

Accessibility & contrast

On white

11.40
#581D74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#581D74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581D74
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581D74#FFFFFF#000000##FFFFFF
##581D741.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003776
Deuteranopia (green-blind)
#133B72
Tritanopia (blue-blind)
#553046
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #581d74;
/* rgb */ color: rgb(88, 29, 116);
/* oklch */ color: oklch(36.6% 0.145 312.4);
Tailwind
colors: {
  custom: {
    50: '#8b5f9d',
    500: '#581d74',
    950: '#000000',
  },
}
SCSS
$custom: #581d74;
$custom-light: #8b5f9d;
$custom-dark: #000000;
JSON
{
  "hex": "#581d74",
  "rgb": {
    "r": 88,
    "g": 29,
    "b": 116
  },
  "hsl": {
    "h": 280.69,
    "s": 60,
    "l": 28.431
  },
  "oklch": {
    "l": 0.36642,
    "c": 0.14527,
    "h": 312.4
  },
  "luminance": 0.04214
}

Semantic roles & 50–950 ramp

primary
#581D74
secondary
#65A845
accent
#E34578
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #581D74

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

Preview Lab → · Contrast checker → · Palette generator →

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