#581F52#581F52

#581F52 is a dark, moderate purple. Relative luminance 0.037; OKLCH L 34.6% C 0.108 H 332.0°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#581F52
RGBrgb(88, 31, 82)
HSLhsl(306, 48%, 23%)
HSVhsv(306, 65%, 35%)
CMYKcmyk(0%, 64.8%, 6.8%, 65.5%)
CIE-LABlab(22.53, 33.43, -18.61)
CIE-LCHlch(22.53, 38.26, 330.89°)
OKLaboklab(34.62% 0.0956 -0.0509)
OKLCHoklch(34.62% 0.108 332)
XYZxyz(6.0375, 3.6643, 8.3703)
Luminance0.0366 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581F52 #1F5825
analogous
#411F58 #581F52 #581F35
triadic
#581F52 #52581F #1F5258
tetradic
#581F52 #58411F #1F5825 #1F3558
square
#581F52 #58411F #1F5825 #1F3558
split-complementary
#581F52 #35581F #1F5841
monochromatic
#170815 #2B0F28 #581F52 #852F7C #B33FA6

Accessibility & contrast

On white

12.12
#581F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#581F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581F52
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581F52#FFFFFF#000000##FFFFFF
##581F521.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D3154
Deuteranopia (green-blind)
#2F3950
Tritanopia (blue-blind)
#5C2435
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #581f52;
/* rgb */ color: rgb(88, 31, 82);
/* oklch */ color: oklch(34.6% 0.108 332.0);
Tailwind
colors: {
  custom: {
    50: '#895f83',
    500: '#581f52',
    950: '#000000',
  },
}
SCSS
$custom: #581f52;
$custom-light: #895f83;
$custom-dark: #000000;
JSON
{
  "hex": "#581f52",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 82
  },
  "hsl": {
    "h": 306.316,
    "s": 47.899,
    "l": 23.333
  },
  "oklch": {
    "l": 0.34616,
    "c": 0.10831,
    "h": 332
  },
  "luminance": 0.03664
}

Semantic roles & 50–950 ramp

primary
#581F52
secondary
#468D4D
accent
#D75F50
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C050A
muted
#7D797C

Preview Lab

Preview with #581F52

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

Preview Lab → · Contrast checker → · Palette generator →

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