#581E87#581E87

#581E87 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.3% C 0.164 H 304.7°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#581E87
RGBrgb(88, 30, 135)
HSLhsl(273, 64%, 32%)
HSVhsv(273, 78%, 53%)
CMYKcmyk(34.8%, 77.8%, 0%, 47.1%)
CIE-LABlab(26.02, 45.61, -47.30)
CIE-LCHlch(26.02, 65.70, 313.96°)
OKLaboklab(38.28% 0.0934 -0.1347)
OKLCHoklch(38.28% 0.164 304.7)
XYZxyz(8.8610, 4.7526, 23.3675)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581E87 #4D871E
analogous
#241E87 #581E87 #871E81
triadic
#581E87 #87581E #1E8758
tetradic
#581E87 #87241E #4D871E #1E8187
square
#581E87 #87241E #4D871E #1E8187
split-complementary
#581E87 #81871E #1E8724
monochromatic
#170823 #371355 #581E87 #7929B9 #9749D7

Accessibility & contrast

On white

10.77
#581E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#581E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581E87
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581E87#FFFFFF#000000##FFFFFF
##581E871.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003E85
Tritanopia (blue-blind)
#4F3851
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #581e87;
/* rgb */ color: rgb(88, 30, 135);
/* oklch */ color: oklch(38.3% 0.164 304.7);
Tailwind
colors: {
  custom: {
    50: '#8c60ab',
    500: '#581e87',
    950: '#000000',
  },
}
SCSS
$custom: #581e87;
$custom-light: #8c60ab;
$custom-dark: #000000;
JSON
{
  "hex": "#581e87",
  "rgb": {
    "r": 88,
    "g": 30,
    "b": 135
  },
  "hsl": {
    "h": 273.143,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38279,
    "c": 0.1639,
    "h": 304.7
  },
  "luminance": 0.04753
}

Semantic roles & 50–950 ramp

primary
#581E87
secondary
#7AB948
accent
#E7418B
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0D0510
muted
#7D797F

Preview Lab

Preview with #581E87

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

Preview Lab → · Contrast checker → · Palette generator →

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