#581B82#581B82

#581B82 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.162 H 306.9°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#581B82
RGBrgb(88, 27, 130)
HSLhsl(276, 66%, 31%)
HSVhsv(276, 79%, 51%)
CMYKcmyk(32.3%, 79.2%, 0%, 49%)
CIE-LABlab(25.17, 45.66, -45.54)
CIE-LCHlch(25.17, 64.49, 315.07°)
OKLaboklab(37.55% 0.0974 -0.1295)
OKLCHoklch(37.55% 0.162 306.9)
XYZxyz(8.4448, 4.4704, 21.5328)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581B82 #45821B
analogous
#241B82 #581B82 #821B78
triadic
#581B82 #82581B #1B8258
tetradic
#581B82 #82241B #45821B #1B7882
square
#581B82 #82241B #45821B #1B7882
split-complementary
#581B82 #78821B #1B8224
monochromatic
#13061D #36104F #581B82 #7A26B5 #9A40D7

Accessibility & contrast

On white

11.09
#581B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#581B82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581B82
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581B82#FFFFFF#000000##FFFFFF
##581B821.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A85
Deuteranopia (green-blind)
#003C80
Tritanopia (blue-blind)
#51354E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #581b82;
/* rgb */ color: rgb(88, 27, 130);
/* oklch */ color: oklch(37.6% 0.162 306.9);
Tailwind
colors: {
  custom: {
    50: '#8c5fa7',
    500: '#581b82',
    950: '#000000',
  },
}
SCSS
$custom: #581b82;
$custom-light: #8c5fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#581b82",
  "rgb": {
    "r": 88,
    "g": 27,
    "b": 130
  },
  "hsl": {
    "h": 275.534,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.37553,
    "c": 0.16202,
    "h": 306.9
  },
  "luminance": 0.0447
}

Semantic roles & 50–950 ramp

primary
#581B82
secondary
#72B643
accent
#E93F84
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #581B82

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

Preview Lab → · Contrast checker → · Palette generator →

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