#581786#581786

#581786 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.170 H 305.9°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#581786
RGBrgb(88, 23, 134)
HSLhsl(275, 71%, 31%)
HSVhsv(275, 83%, 53%)
CMYKcmyk(34.3%, 82.8%, 0%, 47.5%)
CIE-LABlab(24.98, 48.12, -48.36)
CIE-LCHlch(24.98, 68.23, 314.86°)
OKLaboklab(37.53% 0.0997 -0.1378)
OKLCHoklch(37.53% 0.17 305.9)
XYZxyz(8.6330, 4.4088, 22.9458)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581786 #458617
analogous
#201786 #581786 #86177C
triadic
#581786 #865817 #178658
tetradic
#581786 #862017 #458617 #177C86
square
#581786 #862017 #458617 #177C86
split-complementary
#581786 #7C8617 #178620
monochromatic
#13051E #360E52 #581786 #7A20BA #9A3ADD

Accessibility & contrast

On white

11.16
#581786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#581786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581786
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581786#FFFFFF#000000##FFFFFF
##5817861.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003989
Deuteranopia (green-blind)
#003B84
Tritanopia (blue-blind)
#50354F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #581786;
/* rgb */ color: rgb(88, 23, 134);
/* oklch */ color: oklch(37.5% 0.170 305.9);
Tailwind
colors: {
  custom: {
    50: '#8c5daa',
    500: '#581786',
    950: '#000000',
  },
}
SCSS
$custom: #581786;
$custom-light: #8c5daa;
$custom-dark: #000000;
JSON
{
  "hex": "#581786",
  "rgb": {
    "r": 88,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 275.135,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.37525,
    "c": 0.17007,
    "h": 305.9
  },
  "luminance": 0.04409
}

Semantic roles & 50–950 ramp

primary
#581786
secondary
#72BA3F
accent
#ED3A85
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #581786

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

Preview Lab → · Contrast checker → · Palette generator →

#581786 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva