#581A5E#581A5E

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

Color values

HEX#581A5E
RGBrgb(88, 26, 94)
HSLhsl(295, 57%, 24%)
HSVhsv(295, 72%, 37%)
CMYKcmyk(6.4%, 72.3%, 0%, 63.1%)
CIE-LABlab(22.38, 38.13, -26.83)
CIE-LCHlch(22.38, 46.63, 324.87°)
OKLaboklab(34.74% 0.1031 -0.0746)
OKLCHoklch(34.74% 0.127 324.1)
XYZxyz(6.4141, 3.6220, 10.9488)
Luminance0.0362 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581A5E #205E1A
analogous
#361A5E #581A5E #5E1A42
triadic
#581A5E #5E581A #1A5E58
tetradic
#581A5E #5E361A #205E1A #1A425E
square
#581A5E #5E361A #205E1A #1A425E
split-complementary
#581A5E #425E1A #1A5E36
monochromatic
#160718 #2B0D2E #581A5E #85278E #B235BE

Accessibility & contrast

On white

12.18
#581A5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581A5E
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581A5E#FFFFFF#000000##FFFFFF
##581A5E1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#093160
Deuteranopia (green-blind)
#26385C
Tritanopia (blue-blind)
#5A253A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #581a5e;
/* rgb */ color: rgb(88, 26, 94);
/* oklch */ color: oklch(34.7% 0.127 324.1);
Tailwind
colors: {
  custom: {
    50: '#8a5d8c',
    500: '#581a5e',
    950: '#000000',
  },
}
SCSS
$custom: #581a5e;
$custom-light: #8a5d8c;
$custom-dark: #000000;
JSON
{
  "hex": "#581a5e",
  "rgb": {
    "r": 88,
    "g": 26,
    "b": 94
  },
  "hsl": {
    "h": 294.706,
    "s": 56.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.34735,
    "c": 0.12731,
    "h": 324.1
  },
  "luminance": 0.03622
}

Semantic roles & 50–950 ramp

primary
#581A5E
secondary
#479440
accent
#E04855
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #581A5E

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

Preview Lab → · Contrast checker → · Palette generator →

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