#581F6F#581F6F

#581F6F is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.5% C 0.137 H 314.5°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#581F6F
RGBrgb(88, 31, 111)
HSLhsl(283, 56%, 28%)
HSVhsv(283, 72%, 44%)
CMYKcmyk(20.7%, 72.1%, 0%, 56.5%)
CIE-LABlab(24.33, 39.50, -34.80)
CIE-LCHlch(24.33, 52.65, 318.62°)
OKLaboklab(36.5% 0.0963 -0.098)
OKLCHoklch(36.5% 0.137 314.5)
XYZxyz(7.3833, 4.2026, 15.4581)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581F6F #366F1F
analogous
#301F6F #581F6F #6F1F5E
triadic
#581F6F #6F581F #1F6F58
tetradic
#581F6F #6F301F #366F1F #1F5E6F
square
#581F6F #6F301F #366F1F #1F5E6F
split-complementary
#581F6F #5E6F1F #1F6F30
monochromatic
#130718 #32123F #581F6F #7E2C9F #A23FC9

Accessibility & contrast

On white

11.41
#581F6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#581F6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581F6F
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581F6F#FFFFFF#000000##FFFFFF
##581F6F1.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003771
Deuteranopia (green-blind)
#1C3B6D
Tritanopia (blue-blind)
#562F44
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #581f6f;
/* rgb */ color: rgb(88, 31, 111);
/* oklch */ color: oklch(36.5% 0.137 314.5);
Tailwind
colors: {
  custom: {
    50: '#8a6099',
    500: '#581f6f',
    950: '#000000',
  },
}
SCSS
$custom: #581f6f;
$custom-light: #8a6099;
$custom-dark: #000000;
JSON
{
  "hex": "#581f6f",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 111
  },
  "hsl": {
    "h": 282.75,
    "s": 56.338,
    "l": 27.843
  },
  "oklch": {
    "l": 0.36499,
    "c": 0.1374,
    "h": 314.5
  },
  "luminance": 0.04202
}

Semantic roles & 50–950 ramp

primary
#581F6F
secondary
#61A347
accent
#E04874
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #581F6F

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

Preview Lab → · Contrast checker → · Palette generator →

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