#581B6A#581B6A

#581B6A is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.7% C 0.138 H 317.4°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#581B6A
RGBrgb(88, 27, 106)
HSLhsl(286, 59%, 26%)
HSVhsv(286, 75%, 42%)
CMYKcmyk(17%, 74.5%, 0%, 58.4%)
CIE-LABlab(23.34, 40.21, -33.16)
CIE-LCHlch(23.34, 52.12, 320.48°)
OKLaboklab(35.68% 0.1014 -0.0931)
OKLCHoklch(35.68% 0.138 317.4)
XYZxyz(7.0176, 3.8995, 14.0159)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581B6A #2D6A1B
analogous
#301B6A #581B6A #6A1B54
triadic
#581B6A #6A581B #1B6A58
tetradic
#581B6A #6A301B #2D6A1B #1B546A
square
#581B6A #6A301B #2D6A1B #1B546A
split-complementary
#581B6A #546A1B #1B6A30
monochromatic
#140618 #300F39 #581B6A #80279B #A934CB

Accessibility & contrast

On white

11.80
#581B6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#581B6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581B6A
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581B6A#FFFFFF#000000##FFFFFF
##581B6A1.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346C
Deuteranopia (green-blind)
#1D3968
Tritanopia (blue-blind)
#572B40
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #581b6a;
/* rgb */ color: rgb(88, 27, 106);
/* oklch */ color: oklch(35.7% 0.138 317.4);
Tailwind
colors: {
  custom: {
    50: '#8a5e95',
    500: '#581b6a',
    950: '#000000',
  },
}
SCSS
$custom: #581b6a;
$custom-light: #8a5e95;
$custom-dark: #000000;
JSON
{
  "hex": "#581b6a",
  "rgb": {
    "r": 88,
    "g": 27,
    "b": 106
  },
  "hsl": {
    "h": 286.329,
    "s": 59.398,
    "l": 26.078
  },
  "oklch": {
    "l": 0.35677,
    "c": 0.13769,
    "h": 317.4
  },
  "luminance": 0.03899
}

Semantic roles & 50–950 ramp

primary
#581B6A
secondary
#579F42
accent
#E34569
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050D
muted
#7D797E

Preview Lab

Preview with #581B6A

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

Preview Lab → · Contrast checker → · Palette generator →

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