#581C52#581C52

#581C52 is a dark, moderate purple. Relative luminance 0.035; OKLCH L 34.2% C 0.113 H 331.9°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#581C52
RGBrgb(88, 28, 82)
HSLhsl(306, 52%, 23%)
HSVhsv(306, 68%, 35%)
CMYKcmyk(0%, 68.2%, 6.8%, 65.5%)
CIE-LABlab(22.00, 34.89, -19.44)
CIE-LCHlch(22.00, 39.94, 330.87°)
OKLaboklab(34.23% 0.0998 -0.0533)
OKLCHoklch(34.23% 0.113 331.9)
XYZxyz(5.9627, 3.5149, 8.3454)
Luminance0.0351 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581C52 #1C5822
analogous
#401C58 #581C52 #581C34
triadic
#581C52 #52581C #1C5258
tetradic
#581C52 #58401C #1C5822 #1C3458
square
#581C52 #58401C #1C5822 #1C3458
split-complementary
#581C52 #34581C #1C5840
monochromatic
#170716 #2A0D27 #581C52 #862B7D #B53AA9

Accessibility & contrast

On white

12.33
#581C52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#581C52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581C52
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581C52#FFFFFF#000000##FFFFFF
##581C521.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192F54
Deuteranopia (green-blind)
#2D3850
Tritanopia (blue-blind)
#5C2234
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #581c52;
/* rgb */ color: rgb(88, 28, 82);
/* oklch */ color: oklch(34.2% 0.113 331.9);
Tailwind
colors: {
  custom: {
    50: '#895d83',
    500: '#581c52',
    950: '#000000',
  },
}
SCSS
$custom: #581c52;
$custom-light: #895d83;
$custom-dark: #000000;
JSON
{
  "hex": "#581c52",
  "rgb": {
    "r": 88,
    "g": 28,
    "b": 82
  },
  "hsl": {
    "h": 306,
    "s": 51.724,
    "l": 22.745
  },
  "oklch": {
    "l": 0.34228,
    "c": 0.11315,
    "h": 331.9
  },
  "luminance": 0.03514
}

Semantic roles & 50–950 ramp

primary
#581C52
secondary
#428E4A
accent
#DB5B4D
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #581C52

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

Preview Lab → · Contrast checker → · Palette generator →

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