#581B6B#581B6B

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

Color values

HEX#581B6B
RGBrgb(88, 27, 107)
HSLhsl(286, 60%, 26%)
HSVhsv(286, 75%, 42%)
CMYKcmyk(17.8%, 74.8%, 0%, 58%)
CIE-LABlab(23.41, 40.42, -33.70)
CIE-LCHlch(23.41, 52.63, 320.18°)
OKLaboklab(35.75% 0.1013 -0.0947)
OKLCHoklch(35.75% 0.139 316.9)
XYZxyz(7.0699, 3.9204, 14.2914)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581B6B #2E6B1B
analogous
#301B6B #581B6B #6B1B56
triadic
#581B6B #6B581B #1B6B58
tetradic
#581B6B #6B301B #2E6B1B #1B566B
square
#581B6B #6B301B #2E6B1B #1B566B
split-complementary
#581B6B #566B1B #1B6B30
monochromatic
#140618 #300F3A #581B6B #80279C #A835CC

Accessibility & contrast

On white

11.77
#581B6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581B6B
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581B6B#FFFFFF#000000##FFFFFF
##581B6B1.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346D
Deuteranopia (green-blind)
#1C3A69
Tritanopia (blue-blind)
#572B41
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #581b6b;
/* rgb */ color: rgb(88, 27, 107);
/* oklch */ color: oklch(35.7% 0.139 316.9);
Tailwind
colors: {
  custom: {
    50: '#8a5e96',
    500: '#581b6b',
    950: '#000000',
  },
}
SCSS
$custom: #581b6b;
$custom-light: #8a5e96;
$custom-dark: #000000;
JSON
{
  "hex": "#581b6b",
  "rgb": {
    "r": 88,
    "g": 27,
    "b": 107
  },
  "hsl": {
    "h": 285.75,
    "s": 59.701,
    "l": 26.275
  },
  "oklch": {
    "l": 0.35749,
    "c": 0.13869,
    "h": 316.9
  },
  "luminance": 0.0392
}

Semantic roles & 50–950 ramp

primary
#581B6B
secondary
#58A042
accent
#E3456A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050D
muted
#7D797E

Preview Lab

Preview with #581B6B

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

Preview Lab → · Contrast checker → · Palette generator →

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