#581B5F#581B5F

#581B5F is a dark, vivid purple. Relative luminance 0.037; OKLCH L 34.9% C 0.127 H 323.4°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#581B5F
RGBrgb(88, 27, 95)
HSLhsl(294, 56%, 24%)
HSVhsv(294, 72%, 37%)
CMYKcmyk(7.4%, 71.6%, 0%, 62.7%)
CIE-LABlab(22.60, 37.89, -27.14)
CIE-LCHlch(22.60, 46.61, 324.39°)
OKLaboklab(34.92% 0.1019 -0.0756)
OKLCHoklch(34.92% 0.127 323.4)
XYZxyz(6.4818, 3.6852, 11.1942)
Luminance0.0369 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581B5F #225F1B
analogous
#361B5F #581B5F #5F1B44
triadic
#581B5F #5F581B #1B5F58
tetradic
#581B5F #5F361B #225F1B #1B445F
square
#581B5F #5F361B #225F1B #1B445F
split-complementary
#581B5F #445F1B #1B5F36
monochromatic
#160718 #2C0D2F #581B5F #84298F #B036BE

Accessibility & contrast

On white

12.09
#581B5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#581B5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581B5F
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581B5F#FFFFFF#000000##FFFFFF
##581B5F1.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A3161
Deuteranopia (green-blind)
#26385D
Tritanopia (blue-blind)
#5A263A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #581b5f;
/* rgb */ color: rgb(88, 27, 95);
/* oklch */ color: oklch(34.9% 0.127 323.4);
Tailwind
colors: {
  custom: {
    50: '#8a5d8d',
    500: '#581b5f',
    950: '#000000',
  },
}
SCSS
$custom: #581b5f;
$custom-light: #8a5d8d;
$custom-dark: #000000;
JSON
{
  "hex": "#581b5f",
  "rgb": {
    "r": 88,
    "g": 27,
    "b": 95
  },
  "hsl": {
    "h": 293.824,
    "s": 55.738,
    "l": 23.922
  },
  "oklch": {
    "l": 0.34915,
    "c": 0.12686,
    "h": 323.4
  },
  "luminance": 0.03685
}

Semantic roles & 50–950 ramp

primary
#581B5F
secondary
#4A9541
accent
#DF4958
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #581B5F

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

Preview Lab → · Contrast checker → · Palette generator →

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