#581D86#581D86

#581D86 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.164 H 305.2°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#581D86
RGBrgb(88, 29, 134)
HSLhsl(274, 64%, 32%)
HSVhsv(274, 78%, 53%)
CMYKcmyk(34.3%, 78.4%, 0%, 47.5%)
CIE-LABlab(25.79, 45.79, -47.05)
CIE-LCHlch(25.79, 65.65, 314.22°)
OKLaboklab(38.09% 0.0946 -0.1339)
OKLCHoklch(38.09% 0.164 305.2)
XYZxyz(8.7660, 4.6747, 22.9901)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581D86 #4B861D
analogous
#231D86 #581D86 #861D80
triadic
#581D86 #86581D #1D8658
tetradic
#581D86 #86231D #4B861D #1D8086
square
#581D86 #86231D #4B861D #1D8086
split-complementary
#581D86 #80861D #1D8623
monochromatic
#160721 #371254 #581D86 #7928B8 #9846D7

Accessibility & contrast

On white

10.85
#581D86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#581D86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581D86
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581D86#FFFFFF#000000##FFFFFF
##581D861.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C89
Deuteranopia (green-blind)
#003D84
Tritanopia (blue-blind)
#4F3851
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #581d86;
/* rgb */ color: rgb(88, 29, 134);
/* oklch */ color: oklch(38.1% 0.164 305.2);
Tailwind
colors: {
  custom: {
    50: '#8c60aa',
    500: '#581d86',
    950: '#000000',
  },
}
SCSS
$custom: #581d86;
$custom-light: #8c60aa;
$custom-dark: #000000;
JSON
{
  "hex": "#581d86",
  "rgb": {
    "r": 88,
    "g": 29,
    "b": 134
  },
  "hsl": {
    "h": 273.714,
    "s": 64.417,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38091,
    "c": 0.16396,
    "h": 305.2
  },
  "luminance": 0.04675
}

Semantic roles & 50–950 ramp

primary
#581D86
secondary
#78B946
accent
#E7408A
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0D0510
muted
#7D797F

Preview Lab

Preview with #581D86

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

Preview Lab → · Contrast checker → · Palette generator →

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