#581986#581986

#581986 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.168 H 305.7°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#581986
RGBrgb(88, 25, 134)
HSLhsl(275, 69%, 31%)
HSVhsv(275, 81%, 53%)
CMYKcmyk(34.3%, 81.3%, 0%, 47.5%)
CIE-LABlab(25.23, 47.38, -47.95)
CIE-LCHlch(25.23, 67.41, 314.66°)
OKLaboklab(37.7% 0.0981 -0.1366)
OKLCHoklch(37.7% 0.168 305.7)
XYZxyz(8.6742, 4.4913, 22.9596)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581986 #478619
analogous
#211986 #581986 #86197D
triadic
#581986 #865819 #198658
tetradic
#581986 #862119 #478619 #197D86
square
#581986 #862119 #478619 #197D86
split-complementary
#581986 #7D8619 #198621
monochromatic
#14061F #360F52 #581986 #7A23BA #993EDB

Accessibility & contrast

On white

11.06
#581986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#581986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581986
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581986#FFFFFF#000000##FFFFFF
##5819861.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A89
Deuteranopia (green-blind)
#003C84
Tritanopia (blue-blind)
#4F3650
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #581986;
/* rgb */ color: rgb(88, 25, 134);
/* oklch */ color: oklch(37.7% 0.168 305.7);
Tailwind
colors: {
  custom: {
    50: '#8c5eaa',
    500: '#581986',
    950: '#000000',
  },
}
SCSS
$custom: #581986;
$custom-light: #8c5eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#581986",
  "rgb": {
    "r": 88,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 274.679,
    "s": 68.553,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37703,
    "c": 0.16815,
    "h": 305.7
  },
  "luminance": 0.04491
}

Semantic roles & 50–950 ramp

primary
#581986
secondary
#74BA41
accent
#EB3C86
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #581986

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

Preview Lab → · Contrast checker → · Palette generator →

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