#581A5D#581A5D

#581A5D is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.7% C 0.126 H 324.7°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#581A5D
RGBrgb(88, 26, 93)
HSLhsl(296, 56%, 23%)
HSVhsv(296, 72%, 36%)
CMYKcmyk(5.4%, 72%, 0%, 63.5%)
CIE-LABlab(22.32, 37.93, -26.27)
CIE-LCHlch(22.32, 46.14, 325.30°)
OKLaboklab(34.67% 0.1031 -0.073)
OKLCHoklch(34.67% 0.126 324.7)
XYZxyz(6.3695, 3.6042, 10.7140)
Luminance0.0360 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581A5D #1F5D1A
analogous
#361A5D #581A5D #5D1A40
triadic
#581A5D #5D581A #1A5D58
tetradic
#581A5D #5D361A #1F5D1A #1A405D
square
#581A5D #5D361A #1F5D1A #1A405D
split-complementary
#581A5D #405D1A #1A5D36
monochromatic
#170718 #2B0D2D #581A5D #85278D #B335BD

Accessibility & contrast

On white

12.20
#581A5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#581A5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581A5D
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581A5D#FFFFFF#000000##FFFFFF
##581A5D1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B315F
Deuteranopia (green-blind)
#26385B
Tritanopia (blue-blind)
#5A2539
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #581a5d;
/* rgb */ color: rgb(88, 26, 93);
/* oklch */ color: oklch(34.7% 0.126 324.7);
Tailwind
colors: {
  custom: {
    50: '#8a5d8b',
    500: '#581a5d',
    950: '#000000',
  },
}
SCSS
$custom: #581a5d;
$custom-light: #8a5d8b;
$custom-dark: #000000;
JSON
{
  "hex": "#581a5d",
  "rgb": {
    "r": 88,
    "g": 26,
    "b": 93
  },
  "hsl": {
    "h": 295.522,
    "s": 56.303,
    "l": 23.333
  },
  "oklch": {
    "l": 0.34669,
    "c": 0.12636,
    "h": 324.7
  },
  "luminance": 0.03604
}

Semantic roles & 50–950 ramp

primary
#581A5D
secondary
#469340
accent
#E04854
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #581A5D

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

Preview Lab → · Contrast checker → · Palette generator →

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