#581A6F#581A6F

#581A6F is a dark, vivid purple. Relative luminance 0.040; OKLCH L 35.9% C 0.144 H 315.1°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#581A6F
RGBrgb(88, 26, 111)
HSLhsl(284, 62%, 27%)
HSVhsv(284, 77%, 44%)
CMYKcmyk(20.7%, 76.6%, 0%, 56.5%)
CIE-LABlab(23.54, 41.73, -36.07)
CIE-LCHlch(23.54, 55.15, 319.16°)
OKLaboklab(35.94% 0.1019 -0.1017)
OKLCHoklch(35.94% 0.144 315.1)
XYZxyz(7.2627, 3.9615, 15.4179)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581A6F #316F1A
analogous
#2E1A6F #581A6F #6F1A5C
triadic
#581A6F #6F581A #1A6F58
tetradic
#581A6F #6F2E1A #316F1A #1A5C6F
square
#581A6F #6F2E1A #316F1A #1A5C6F
split-complementary
#581A6F #5C6F1A #1A6F2E
monochromatic
#140619 #310E3D #581A6F #7F26A1 #A534CF

Accessibility & contrast

On white

11.72
#581A6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581A6F
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581A6F#FFFFFF#000000##FFFFFF
##581A6F1.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003571
Deuteranopia (green-blind)
#173A6D
Tritanopia (blue-blind)
#562C43
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #581a6f;
/* rgb */ color: rgb(88, 26, 111);
/* oklch */ color: oklch(35.9% 0.144 315.1);
Tailwind
colors: {
  custom: {
    50: '#8a5d99',
    500: '#581a6f',
    950: '#000000',
  },
}
SCSS
$custom: #581a6f;
$custom-light: #8a5d99;
$custom-dark: #000000;
JSON
{
  "hex": "#581a6f",
  "rgb": {
    "r": 88,
    "g": 26,
    "b": 111
  },
  "hsl": {
    "h": 283.765,
    "s": 62.044,
    "l": 26.863
  },
  "oklch": {
    "l": 0.35939,
    "c": 0.14397,
    "h": 315.1
  },
  "luminance": 0.03961
}

Semantic roles & 50–950 ramp

primary
#581A6F
secondary
#5CA441
accent
#E5436F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #581A6F

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

Preview Lab → · Contrast checker → · Palette generator →

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