#581F86#581F86

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

Color values

HEX#581F86
RGBrgb(88, 31, 134)
HSLhsl(273, 62%, 32%)
HSVhsv(273, 77%, 53%)
CMYKcmyk(34.3%, 76.9%, 0%, 47.5%)
CIE-LABlab(26.09, 44.93, -46.56)
CIE-LCHlch(26.09, 64.70, 313.98°)
OKLaboklab(38.3% 0.0927 -0.1325)
OKLCHoklch(38.3% 0.162 305)
XYZxyz(8.8166, 4.7760, 23.0070)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581F86 #4D861F
analogous
#251F86 #581F86 #861F80
triadic
#581F86 #86581F #1F8658
tetradic
#581F86 #86251F #4D861F #1F8086
square
#581F86 #86251F #4D861F #1F8086
split-complementary
#581F86 #80861F #1F8625
monochromatic
#170823 #371454 #581F86 #792AB8 #974AD5

Accessibility & contrast

On white

10.74
#581F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#581F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581F86
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581F86#FFFFFF#000000##FFFFFF
##581F861.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C89
Deuteranopia (green-blind)
#003E84
Tritanopia (blue-blind)
#4F3951
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #581f86;
/* rgb */ color: rgb(88, 31, 134);
/* oklch */ color: oklch(38.3% 0.162 305.0);
Tailwind
colors: {
  custom: {
    50: '#8c61aa',
    500: '#581f86',
    950: '#000000',
  },
}
SCSS
$custom: #581f86;
$custom-light: #8c61aa;
$custom-dark: #000000;
JSON
{
  "hex": "#581f86",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 273.204,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38301,
    "c": 0.16172,
    "h": 305
  },
  "luminance": 0.04776
}

Semantic roles & 50–950 ramp

primary
#581F86
secondary
#7AB849
accent
#E5428B
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0D0510
muted
#7D797F

Preview Lab

Preview with #581F86

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

Preview Lab → · Contrast checker → · Palette generator →

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