#581C86#581C86

#581C86 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.165 H 305.3°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#581C86
RGBrgb(88, 28, 134)
HSLhsl(274, 65%, 32%)
HSVhsv(274, 79%, 53%)
CMYKcmyk(34.3%, 79.1%, 0%, 47.5%)
CIE-LABlab(25.64, 46.20, -47.28)
CIE-LCHlch(25.64, 66.11, 314.34°)
OKLaboklab(37.99% 0.0955 -0.1346)
OKLCHoklch(37.99% 0.165 305.3)
XYZxyz(8.7419, 4.6265, 22.9821)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581C86 #4A861C
analogous
#231C86 #581C86 #861C7F
triadic
#581C86 #86581C #1C8658
tetradic
#581C86 #86231C #4A861C #1C7F86
square
#581C86 #86231C #4A861C #1C7F86
split-complementary
#581C86 #7F861C #1C8623
monochromatic
#160721 #371153 #581C86 #7927B9 #9844D8

Accessibility & contrast

On white

10.91
#581C86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#581C86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581C86
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581C86#FFFFFF#000000##FFFFFF
##581C861.0010.911.9310.91
#FFFFFF10.911.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #581c86;
/* rgb */ color: rgb(88, 28, 134);
/* oklch */ color: oklch(38.0% 0.165 305.3);
Tailwind
colors: {
  custom: {
    50: '#8c5faa',
    500: '#581c86',
    950: '#000000',
  },
}
SCSS
$custom: #581c86;
$custom-light: #8c5faa;
$custom-dark: #000000;
JSON
{
  "hex": "#581c86",
  "rgb": {
    "r": 88,
    "g": 28,
    "b": 134
  },
  "hsl": {
    "h": 273.962,
    "s": 65.432,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37989,
    "c": 0.16505,
    "h": 305.3
  },
  "luminance": 0.04626
}

Semantic roles & 50–950 ramp

primary
#581C86
secondary
#77B945
accent
#E83F89
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0D0510
muted
#7D797F

Preview Lab

Preview with #581C86

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

Preview Lab → · Contrast checker → · Palette generator →

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