#581B6C#581B6C

#581B6C is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.8% C 0.140 H 316.4°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#581B6C
RGBrgb(88, 27, 108)
HSLhsl(285, 60%, 26%)
HSVhsv(285, 75%, 42%)
CMYKcmyk(18.5%, 75%, 0%, 57.6%)
CIE-LABlab(23.48, 40.64, -34.23)
CIE-LCHlch(23.48, 53.14, 319.89°)
OKLaboklab(35.82% 0.1012 -0.0963)
OKLCHoklch(35.82% 0.14 316.4)
XYZxyz(7.1228, 3.9416, 14.5701)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581B6C #2F6C1B
analogous
#301B6C #581B6C #6C1B58
triadic
#581B6C #6C581B #1B6C58
tetradic
#581B6C #6C301B #2F6C1B #1B586C
square
#581B6C #6C301B #2F6C1B #1B586C
split-complementary
#581B6C #586C1B #1B6C30
monochromatic
#140618 #300F3B #581B6C #80279D #A735CC

Accessibility & contrast

On white

11.74
#581B6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#581B6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581B6C
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581B6C#FFFFFF#000000##FFFFFF
##581B6C1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346E
Deuteranopia (green-blind)
#1B3A6A
Tritanopia (blue-blind)
#572C41
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #581b6c;
/* rgb */ color: rgb(88, 27, 108);
/* oklch */ color: oklch(35.8% 0.140 316.4);
Tailwind
colors: {
  custom: {
    50: '#8a5e97',
    500: '#581b6c',
    950: '#000000',
  },
}
SCSS
$custom: #581b6c;
$custom-light: #8a5e97;
$custom-dark: #000000;
JSON
{
  "hex": "#581b6c",
  "rgb": {
    "r": 88,
    "g": 27,
    "b": 108
  },
  "hsl": {
    "h": 285.185,
    "s": 60,
    "l": 26.471
  },
  "oklch": {
    "l": 0.35822,
    "c": 0.1397,
    "h": 316.4
  },
  "luminance": 0.03941
}

Semantic roles & 50–950 ramp

primary
#581B6C
secondary
#59A142
accent
#E3456C
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050D
muted
#7D797E

Preview Lab

Preview with #581B6C

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

Preview Lab → · Contrast checker → · Palette generator →

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