#581B81#581B81

#581B81 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.161 H 307.3°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#581B81
RGBrgb(88, 27, 129)
HSLhsl(276, 65%, 31%)
HSVhsv(276, 79%, 51%)
CMYKcmyk(31.8%, 79.1%, 0%, 49.4%)
CIE-LABlab(25.09, 45.42, -45.04)
CIE-LCHlch(25.09, 63.97, 315.24°)
OKLaboklab(37.47% 0.0976 -0.128)
OKLCHoklch(37.47% 0.161 307.3)
XYZxyz(8.3780, 4.4437, 21.1810)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581B81 #44811B
analogous
#251B81 #581B81 #811B77
triadic
#581B81 #81581B #1B8158
tetradic
#581B81 #81251B #44811B #1B7781
square
#581B81 #81251B #44811B #1B7781
split-complementary
#581B81 #77811B #1B8125
monochromatic
#13061C #35104E #581B81 #7B26B4 #9A3FD7

Accessibility & contrast

On white

11.12
#581B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581B81
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581B81#FFFFFF#000000##FFFFFF
##581B811.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003984
Deuteranopia (green-blind)
#003C7F
Tritanopia (blue-blind)
#51344D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #581b81;
/* rgb */ color: rgb(88, 27, 129);
/* oklch */ color: oklch(37.5% 0.161 307.3);
Tailwind
colors: {
  custom: {
    50: '#8c5fa6',
    500: '#581b81',
    950: '#000000',
  },
}
SCSS
$custom: #581b81;
$custom-light: #8c5fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#581b81",
  "rgb": {
    "r": 88,
    "g": 27,
    "b": 129
  },
  "hsl": {
    "h": 275.882,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3747,
    "c": 0.161,
    "h": 307.3
  },
  "luminance": 0.04444
}

Semantic roles & 50–950 ramp

primary
#581B81
secondary
#71B543
accent
#E83F83
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #581B81

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

Preview Lab → · Contrast checker → · Palette generator →

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