#581B68#581B68

#581B68 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.5% C 0.136 H 318.5°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#581B68
RGBrgb(88, 27, 104)
HSLhsl(288, 59%, 26%)
HSVhsv(288, 74%, 41%)
CMYKcmyk(15.4%, 74%, 0%, 59.2%)
CIE-LABlab(23.20, 39.77, -32.08)
CIE-LCHlch(23.20, 51.10, 321.11°)
OKLaboklab(35.53% 0.1016 -0.09)
OKLCHoklch(35.53% 0.136 318.5)
XYZxyz(6.9148, 3.8584, 13.4745)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581B68 #2B681B
analogous
#311B68 #581B68 #681B51
triadic
#581B68 #68581B #1B6858
tetradic
#581B68 #68311B #2B681B #1B5168
square
#581B68 #68311B #2B681B #1B5168
split-complementary
#581B68 #51681B #1B6831
monochromatic
#150618 #2F0E37 #581B68 #812899 #AA34C9

Accessibility & contrast

On white

11.85
#581B68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#581B68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581B68
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581B68#FFFFFF#000000##FFFFFF
##581B681.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336A
Deuteranopia (green-blind)
#1F3966
Tritanopia (blue-blind)
#582A3F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #581b68;
/* rgb */ color: rgb(88, 27, 104);
/* oklch */ color: oklch(35.5% 0.136 318.5);
Tailwind
colors: {
  custom: {
    50: '#8a5e93',
    500: '#581b68',
    950: '#000000',
  },
}
SCSS
$custom: #581b68;
$custom-light: #8a5e93;
$custom-dark: #000000;
JSON
{
  "hex": "#581b68",
  "rgb": {
    "r": 88,
    "g": 27,
    "b": 104
  },
  "hsl": {
    "h": 287.532,
    "s": 58.779,
    "l": 25.686
  },
  "oklch": {
    "l": 0.35533,
    "c": 0.1357,
    "h": 318.5
  },
  "luminance": 0.03858
}

Semantic roles & 50–950 ramp

primary
#581B68
secondary
#559D42
accent
#E24666
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C050D
muted
#7D797E

Preview Lab

Preview with #581B68

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

Preview Lab → · Contrast checker → · Palette generator →

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