#581B89#581B89

#581B89 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.169 H 304.4°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#581B89
RGBrgb(88, 27, 137)
HSLhsl(273, 67%, 32%)
HSVhsv(273, 80%, 54%)
CMYKcmyk(35.8%, 80.3%, 0%, 46.3%)
CIE-LABlab(25.76, 47.32, -48.97)
CIE-LCHlch(25.76, 68.10, 314.02°)
OKLaboklab(38.15% 0.0956 -0.1396)
OKLCHoklch(38.15% 0.169 304.4)
XYZxyz(8.9308, 4.6647, 24.0920)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581B89 #4C891B
analogous
#211B89 #581B89 #891B83
triadic
#581B89 #89581B #1B8958
tetradic
#581B89 #89211B #4C891B #1B8389
square
#581B89 #89211B #4C891B #1B8389
split-complementary
#581B89 #83891B #1B8921
monochromatic
#160723 #371156 #581B89 #7925BC #9744DA

Accessibility & contrast

On white

10.86
#581B89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581B89
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581B89#FFFFFF#000000##FFFFFF
##581B891.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8C
Deuteranopia (green-blind)
#003D87
Tritanopia (blue-blind)
#4E3852
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #581b89;
/* rgb */ color: rgb(88, 27, 137);
/* oklch */ color: oklch(38.1% 0.169 304.4);
Tailwind
colors: {
  custom: {
    50: '#8c5fac',
    500: '#581b89',
    950: '#000000',
  },
}
SCSS
$custom: #581b89;
$custom-light: #8c5fac;
$custom-dark: #000000;
JSON
{
  "hex": "#581b89",
  "rgb": {
    "r": 88,
    "g": 27,
    "b": 137
  },
  "hsl": {
    "h": 273.273,
    "s": 67.073,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38149,
    "c": 0.16917,
    "h": 304.4
  },
  "luminance": 0.04665
}

Semantic roles & 50–950 ramp

primary
#581B89
secondary
#79BC44
accent
#EA3E8B
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #581B89

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

Preview Lab → · Contrast checker → · Palette generator →

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